Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
paulbriton opened this issue Oct 3, 2017 · 7 comments
Closed

Comments

@paulbriton
Copy link

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.
@jimevans
Copy link
Member

jimevans commented Oct 3, 2017

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.

@jimevans jimevans closed this as completed Oct 3, 2017
@paulbriton
Copy link
Author

paulbriton commented Oct 3, 2017

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

@jimevans
Copy link
Member

jimevans commented Oct 3, 2017

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.

@paulbriton
Copy link
Author

paulbriton commented Oct 3, 2017

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.

@paulbriton
Copy link
Author

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

@paulbriton
Copy link
Author

Answering last question myself, IEDriverServer 3.4 does the trick !

@Rialakshmi
Copy link

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

@lock lock bot locked and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants