Skip to content

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

Closed

Description

@geb-bot

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:

when:
$("form").artist = 3
then:
thrown(org.openqa.selenium.StaleElementReferenceException)

Activity

  1. added this to the 1.0 milestone on Aug 20, 2015
  2. erdi commented on Nov 26, 2015

    @erdi
    Member

    Happens for radio buttons as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions