-
Notifications
You must be signed in to change notification settings - Fork 852
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
PHP Notice: Undefined index: ELEMENT error occured when I test with firefox browser #492
Comments
Hi, this is caused by #469 . To solve the issue for now, you could either use Chrome (which works pretty well), or Selenium 3.4, or when using Selenium 3.5 and newer you must enable the protocol translating in Selenium (as mentioned in #469), using Selenium option Sorry for inconvenience :). |
causes |
In my case the only solution was:
and using in your test class:
It works with executing Selenium standard way:
|
The passthrough option was removed in new releases. How can we solve it now? |
I want to visit a website and input something
How could the issue be reproduced? (Steps to reproduce)
Details
When execute step 5 ,error has occur and I can't input 'php' automatically.
PHP Notice: Undefined index: ELEMENT in D:\test\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php on line 178
PHP Stack trace:
PHP 1. {main}() D:\debug\example.php:0
PHP 2. Facebook\WebDriver\example->setUp() D:\debug\example.php:20
PHP 3. Facebook\WebDriver\Remote\RemoteWebDriver->findElement() D:\debug\example.php:16
Notice: Undefined index: ELEMENT in D:\test\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php on line 178
Call Stack:
0.0002 356120 1. {main}() D:\debug\example.php:0
0.0044 641504 2. Facebook\WebDriver\example->setUp() D:\debug\example.php:20
5.9112 976680 3. Facebook\WebDriver\Remote\RemoteWebDriver->findElement() D:\debug\example.php:16
PHP Fatal error: Uncaught Facebook\WebDriver\Exception\UnknownCommandException: POST /session/9051ba4e-2f87-4f19-b07e-467d9484d01e/element//value
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'DESKTOP-M7BARRS', ip: '192.168.1.50', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: unknown in D:\test\vendor\facebook\webdriver\lib\Exception\WebDriverException.php:106
Stack trace:
#0 D:\test\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php(320): Facebook\WebDriver\Exception\WebDriverException::throwException(9, 'POST /session/9...', Array)
#1 D:\test\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php(535): Facebook\WebDriver\Remote\HttpCommandExecutor->execute(Object(Facebook\WebDriver\Remote\WebDriverCommand))
#2 D:\test\vendor\facebook\webdriver\lib\Remote\RemoteExecuteMethod.php(40): Facebook\WebDriver\Remote\RemoteWebDriver->execute('sendKeysToEleme...', Array)
#3 D:\test\vendor\faceboo in D:\test\vendor\facebook\webdriver\lib\Exception\WebDriverException.php on line 106
Fatal error: Uncaught Facebook\WebDriver\Exception\UnknownCommandException: POST /session/9051ba4e-2f87-4f19-b07e-467d9484d01e/element//value
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'DESKTOP-M7BARRS', ip: '192.168.1.50', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: unknown in D:\test\vendor\facebook\webdriver\lib\Exception\WebDriverException.php on line 106
Facebook\WebDriver\Exception\UnknownCommandException: POST /session/9051ba4e-2f87-4f19-b07e-467d9484d01e/element//value
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'DESKTOP-M7BARRS', ip: '192.168.1.50', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: unknown in D:\test\vendor\facebook\webdriver\lib\Exception\WebDriverException.php on line 106
Call Stack:
0.0002 356120 1. {main}() D:\debug\example.php:0
0.0044 641504 2. Facebook\WebDriver\example->setUp() D:\debug\example.php:20
5.9275 1105488 3. Facebook\WebDriver\Remote\RemoteWebElement->sendKeys() D:\debug\example.php:16
5.9280 1117880 4. Facebook\WebDriver\Remote\RemoteExecuteMethod->execute() D:\test\vendor\facebook\webdriver\lib\Remote\RemoteWebElement.php:332
5.9280 1117880 5. Facebook\WebDriver\Remote\RemoteWebDriver->execute() D:\test\vendor\facebook\webdriver\lib\Remote\RemoteExecuteMethod.php:40
5.9280 1117976 6. Facebook\WebDriver\Remote\HttpCommandExecutor->execute() D:\test\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php:535
5.9374 1157488 7. Facebook\WebDriver\Exception\WebDriverException::throwException() D:\test\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php:320
The text was updated successfully, but these errors were encountered: