Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.6.1
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Environment:OSX, Firefox 8.0.1, Selenium version 2.11.0
-
Number of attachments :
Description
If you have javascript onChange event handlers on a select element that change the window.location, using Geb to set the value of the select will throw a org.openqa.selenium.StaleElementReferenceException. Example:
<select name="artist" onChange="window.location='http://www.google.com';">
<option value="1">Ima Robot</option>
<option value="2">Edward Sharpe and the Magnetic Zeros</option>
<option value="3">Alexander</option>
</select>
Then, in the test:
when:
$("form").artist = 3
then:
thrown(org.openqa.selenium.StaleElementReferenceException)