I am attempting to migrate working cucumber tests in Watir (IE) and have them work on the Mac driving Safari. I cannot determine how to have Safari verify the default value of a selectlist.
This is the command I am using: @browser.select_list(:id, 'id_name').selected_value.should == "-- Select--" This is the error message I receive: expected: "--Select--", got: "" (using ==) Diff: @@ -1,2 +1 @@ ---Select-- (Spec::Expectations::ExpectationNotMetError) The default value of the selectlist is '--Select--' Any help would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---