Troubleshooting of selenium errors: Difference between revisions
Jump to navigation
Jump to search
(Created page with "[https://www.selenium.dev/ SeleniumHQ Browser Automation] == How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException == Error message <pre> PHP Fatal er...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
[https://www.selenium.dev/ SeleniumHQ Browser Automation] | [https://www.selenium.dev/ SeleniumHQ Browser Automation] ([https://github.com/php-webdriver/php-webdriver php-webdriver/php-webdriver: PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver]) | ||
== How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException == | == How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException == |
Revision as of 15:58, 26 May 2020
SeleniumHQ Browser Automation (php-webdriver/php-webdriver: PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver)
How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException
Error message
PHP Fatal error: Uncaught Facebook\WebDriver\Exception\InvalidSelectorException: invalid selector: The result of the xpath expression "xxx" is: [object Attr]. It should be an element. (Session info: chrome=83.0.4103.61) in /path/to/vendor/php-webdriver/webdriver/lib/Exception/WebDriverException.php:105
Situation
- After the term was keyed in into the text box, the script shuld auto click the specified button which specified by XPath expression.
Possibile soultions
- Solution1: Using headless chrome[1]
- Solution2: Not click the button which specified by XPath expression. Send the ENTER to submit the form[2].
References
Troubleshooting of ...
- PHP, cUrl, Python, selenium, HTTP status code errors
- Database: SQL syntax debug, MySQL errors, MySQLTuner errors or PostgreSQL errors
- HTML/Javascript: Troubleshooting of javascript, XPath
- Software: Mediawiki, Docker, FTP problems, online conference software
- Test connectivity for the web service, Web Ping, Network problem, Web user behavior, Web scrape troubleshooting
Template