Setting the value of a select element if an onChange event causes the page to reload will throw an exception #155

geb-bot opened this Issue Dec 12, 2011 · 1 comment


None yet

2 participants

geb-bot commented Dec 12, 2011

Originally created by Ellery Crane.

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:

Ima Robot Edward Sharpe and the Magnetic Zeros Alexander

Then, in the test:

$("form").artist = 3

@geb-bot geb-bot added the Bug label Apr 12, 2015
@erdi erdi added this to the 1.0 milestone Aug 20, 2015
erdi commented Nov 26, 2015

Happens for radio buttons as well.

@erdi erdi added a commit to geb/geb that closed this issue Dec 28, 2015
@erdi erdi Suppress stale element exceptions thrown when changing values of mult…
…i element form controls to enable changing values for elements which change or reload the page from change handlers.

Closes geb/issues#155.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment