Skip to content

Unable to find element with Internet Explorer through selenium hub #4800

Closed

Description

@paulbriton

Meta -

OS: Windows 10
Selenium Version: 3.6
Browser: Internet Explorer
Browser Version: IE11

Expected Behavior -

Finding an element with any available selector using Selenium hub.

Actual Behavior -

"Element not found" or "Undefined index: ELEMENT"

Steps to reproduce -

I'm using Facebook PHP bindings in this example, but I can reproduce with old PHPUnit ones too. The issue only happens when using the hub mode. Provided test case should be simple enough to be translated to another bindings.

  • Run a selenium hub : java -jar selenium-server-standalone-3.6.0.jar -enablePassThrough false -role hub
  • Run a selenium node : java -jar selenium-server-standalone-3.6.0.jar -enablePassThrough false -role node
  • Try this code.

Activity

  1. jimevans commented on Oct 3, 2017

    @jimevans
    Member

    The IE driver (and indeed no driver implementation) has used ELEMENT as the key for an element reference for over a year now. The bindings need to be updated to use the proper key.

  2. paulbriton commented on Oct 3, 2017

    @paulbriton
    Author

    @jimevans So why this only happens with IE driver using the hub ?

  3. jimevans commented on Oct 3, 2017

    @jimevans
    Member

    Because the IE driver now supports the W3C WebDriver Specification dialect of the wire protocol used for communication. In prior versions, the driver would return an element representation that used both keys in the dictionary. It no longer does so. I strongly suspect that if the language bindings used IEDriverServer.exe directly instead of the Java standalone server, they would encounter the same issue.

  4. paulbriton commented on Oct 3, 2017

    @paulbriton
    Author

    My guess was if it doesn't work, it doesn't work for both stand-alone and hub.

    @jimevans It's not possible to keep both keys in the dictionary ? This way, it'll give us some time to make the proper change in the bindings. The support of the W3C spec is currently in progress in the facebook php bindings.

  5. paulbriton commented on Oct 3, 2017

    @paulbriton
    Author

    Also, which version should I use to avoid this problem ?

  6. paulbriton commented on Oct 3, 2017

    @paulbriton
    Author

    Answering last question myself, IEDriverServer 3.4 does the trick !

  7. Rialakshmi commented on Sep 8, 2018

    @Rialakshmi

    @paulbriton You saved my day. 3.4 worked for me. Thanks a lot!!!

  8. locked and limited conversation to collaborators on Aug 15, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions