Hi Angrez,
here is the test i'm using:
def test_1
$FF = Firefox.new
$FF.goto("www.anntaylor.com")
$FF.link(:text, 'WEEKEND CASUAL').click
$FF.image(:index, '25').click
$FF.form(:name, 'OrderByVariantSimple').select_list(:index,
'1').select_value(/\d+/)
$FF.form(:name, 'OrderByVariantSimple').select_list(:index,
'2').select_value(/\d+/)
$FF.form(:name, 'OrderByVariantSimple').select_list(:name,
'OMQuantity0').select_value('1')
$FF.form(:name, 'OrderByVariantSimple').checkbox(:id,
'AddToBag0Id', 'on').set(set_or_clear=true)
$FF.button(:src,
'http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click
$FF.image(:src,
'http://www.anntaylor.com/Images/Global/BTN_CHECKOUT.gif').click
$FF.image(:index, '26').click
end
Try running it. It works correctly in Watir but when it gets to the following
two lines, it breaks in firewatir.
$FF.form(:name, 'OrderByVariantSimple').checkbox(:id,
'AddToBag0Id', 'on').set(set_or_clear=true)
$FF.button(:src,
'http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click
It doesn't select the checkbox in the first line and can't find the image for
the button in the second line.
If it's an error on my part, please let me know what needs to be changed.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6078&messageID=17112#17112
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general