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
Undefined index: ELEMENT in RemoteWebDriver.php on line 178 #468
Comments
Try to run Selenium Server with Also, you need to note that Geckodriver only implements the W3C spec, which isn't implemented yet in those bindings. So you might encounter some weird behaviour. |
Yes, @paulbriton is right, the default behavior of Selenium server changed with version 3.5. You can either:
I will update the README soon to mention this (i guess many people will now have this problem), and we will start working on long-term solution (support of the W3C WebDriver protocol). |
@OndraM Thanks for the suggestions. Any way to achieve this easily when using the Selenium Docker image? |
@bperel You can pass option to the Selenium server in Docker via SE_OPTS environment variable, see https://github.com/SeleniumHQ/docker-selenium#se_opts-selenium-configuration-options . |
How exactly does it work, I tried I get ' Error: Unable to access jarfile selenium-server-standalone-3.9.1.jar' |
Please, try to ask questions about running applications in forums or websites (e.g. stackoverflow). Github is for code, bug reports, contributing your code, ideas on how to change something in that code. Not for general help. Each comment sends an unnecessary email to everyone subscribed. Above said: How does it work? You run a Where does it fail? Read the error you're getting. Java complains it can't access |
@cprn, Nope. Selenium server starts if I ommit |
causes |
In my case the only solution was:
and using in your test class:
It works with executing Selenium standard way:
|
|
I'm encountering this same issue running on the following and using Facebook Webdriver; see below. Chrome was working without issue but certain sites can detect JavsScript values and block automation. [capabilities:protected] => Facebook\WebDriver\Remote\DesiredCapabilities Object
|
What are you trying to achieve? (Expected behavior)
run example.php
What do you get instead? (Actual behavior)
Undefined index: ELEMENT
How could the issue be reproduced? (Steps to reproduce)
Undefined index: ELEMENT in ...\Code\php-webdriver\lib\Remote\RemoteWebDriver.php on line 178
$raw_element
Details
The text was updated successfully, but these errors were encountered: