Good Afternoon!

Has anyone run into the issue where they cannot pass values from an
xls file using rasta via a watir script? I have successfully run the
example from the website -  http://rasta.rubyforge.org/

My issue is that I cannot pass a value from the following code:

require 'watir'
require 'watir/ie'
require 'rasta/fixture/rasta_fixture'

class IDClassCodeTest
  include Rasta::Fixture::RastaFixture
  attr_accessor :get_classcode, :search_term1

  def before_all
    @ie = Watir::IE.attach(:title, "My Test Page")
  end

  def before_each
    @ie.text_field(:id, "CommlSubLocation.Construction.YearBuilt").set
(get_classcode)
    #[email protected]_list(:id, "hazardClassList").select_value
(get_classcode)
    puts(get_classcode)
  end

  def is_displaying_1?()
    @ie.contains_text(search_term1) ? true : false
  end

end

In the case of the text_field & select_list, the script successfully
finds the field I want but does not pass the value. Using puts,
reveals it seems no value is passed.

The xls file looks like:

get_classcode   search_term1    is_displaying_1?
2001                    Test                    TRUE
2002                    Test                    FALSE

Any help/guidance would be greatly appreciated.

- Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to