|
|
|
[
Permlink
| « Hide
]
Bach Le - 07/Aug/06 06:29 PM
I misstated my working environment. The OS is Win xp home edition.
I reproduced this once, but know cannot reproduce it again with either version of Watir.
My problem is that i am getting an error with this line: ie.link(:text, 'Chicago North (2007)').click I think the first time the script runs, it changes the state of the site, so it can't be run again. It's also possible the web site has changed. Would it be possible to provide a different web site or a modified script? Our unit tests for forms work. Ideally we would be provided with a web page and a script that works with it. Bret I now see the problem and can reproduce...
This is the test case i used with this
class TC_Forms1 < Test::Unit::TestCase def setup puts Watir::IE::VERSION $ie.goto($htmlRoot + "entertainment_com.html") end def test_button_in_form assert_nothing_raised do $ie.form(:name, 'shipaddress').button(:src, 'https://www.entertainment.com/images/button_continue.gif').click end end end I have attached a testcase and a html page that reproduce the reported problem. However, this testcase fails on both 1.5 and 1.4. I haven't looked at the html closely, so i don't yet know whether this is a bug or not.
However, i am no longer treating this as a regression bug. Downgrading because i have not been able to reproduce an example of this problem that only happens with 1.5.
From Phlip:
1.5.1.1065 My test suite is checked into the HEAD here, if you want to tweak its forms cases: http://rubyforge.org/projects/minirubywiki/ I've added a testcase for this issue and have a fix, but the fix breaks another test. The issue in the end is whether we use the "all" or "elements" method of the form to get the descending element. We have been using "elements" and until this example, it worked. Using "all" also usually works, except for one test that we have (google-india).
If you want to fix this, use this code. But I want to understand more about this before commiting this to trunk. class Watir::Form def ole_inner_elements assert_exists @ole_object.all end end |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||