Hi Bach,
Did you tried the latest gem that is there on the code.google.com. It has
support for frames. The syntax that you are using is correct. Could you let
me what errors you get or it simply doesn't work?
Also try using the latest gem from code.google.com.
Regards,
Angrez
On 1/12/07, Bach Le <[EMAIL PROTECTED]> wrote:
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
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general