I am encountering an interesting problem with Selenium...
One of my test suites performs "some" searches - nothing too fancy, just setting some values and clicking a "submit" button.
 
This is working on many pages of our site. However, on one type of page I'm seeing some different behavior.
 
Here is a snippet from one of my Selenium tests:
 
 
 
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[2]/select[1] | label=League
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[3]/select[1] | label=is not
select | //[EMAIL PROTECTED]'formzz-row2-SBR']/td[4]/select | label=NBA
clickAndWait | //[EMAIL PROTECTED]"formzz"]/table[1]/tbody[1]/tr[5]/td[1]/input[1]
 
In the case above, I'm simply selecting options from the select boxes and finish up with a clickAndWait on the "submit" button.
This works, and works on all of the pages on my site (where the functionality is available).
 
Now, we have this next snippet from another test - this is one that does not work...
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[2]/select[1] | label=League
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[3]/select[1] | label=is not
select | //[EMAIL PROTECTED]"formzz-row2-SBR']/td[4]/select | label=CFL
click|  link=Add row  
select | //[EMAIL PROTECTED]"formzz-row3-SBR"]/td[2]/select[1] | label=League
select | //[EMAIL PROTECTED]"formzz-row3-SBR"]/td[3]/select[1] | label=is not
select | //[EMAIL PROTECTED]"formzz-row3-SBR']/td[4]/select | label=NBA
clickAndWait | //[EMAIL PROTECTED]"formzz"]/table[1]/tbody[1]/tr[5]/td[1]/input[1] 
 
Again, we are doing nothing more than making selections for select boxes (there is an "add Row" link click in there too) and ending with a clcikAndWait on the "submit" button.
 
My test will hang on the command:
select | //[EMAIL PROTECTED]"formzz-row2-SBR']/td[4]/select | label=CFL
 
No select is performed and we just sit with the current command highlighted in grey in the Test Runner window/page.
 
Now, if I alter the above "not working" test as follows:
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[2]/select[1] | label=League
select | //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[3]/select[1] | label=does not contain
select |  //[EMAIL PROTECTED]"formzz-row2-SBR"]/td[4]/input[1] | xyz
click|  link=Add row  
select | //[EMAIL PROTECTED]"formzz-row3-SBR"]/td[2]/select[1] | label=League
select | //[EMAIL PROTECTED]"formzz-row3-SBR"]/td[3]/select[1] | label=is not
select | //[EMAIL PROTECTED]"formzz-row3-SBR']/td[4]/select | label=NBA
clickAndWait | //[EMAIL PROTECTED]"formzz"]/table[1]/tbody[1]/tr[5]/td[1]/input[1] 
 
The test will halt at the command:
select | //[EMAIL PROTECTED]"formzz-row3-SBR']/td[4]/select | label=NBA
 
Again, no select is performed and we just sit with the current command highlighted in grey in the Test Runner window/page.
 
 
As stated, these same lines work against other pages, but fail or halt on the page I'm currently testing.
None of these lines, use any of my user-extensions, just clean Selenese.
 
I am using a couple of my user-extensions in other tests, but nothing that I haven't used in a dozen or more tests already.
Also, the page under test does contain a fair amount of _javascript_ - don't know that that should be an issue, but it is a difference, that I've not yet discounted.
 
Any, does anyone have any thoughts on what might be the cause or maybe thoughts on how to get around this problem?
 
Thanks in advance,
 
 - Mike Taber
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to