Troubleshooting of selenium errors: Difference between revisions
Jump to navigation
Jump to search
m
→How to resolve [WARNING]: This version of ChromeDriver only supports Chrome version xx or [WARNING]: This version of ChromeDriver has not been tested with Chrome version 86
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* Checking the standalone selenium server is running or not {{kbd | key=<nowiki>ps aux | grep selenium</nowiki>}} on {{Linux}} | * Checking the standalone selenium server is running or not {{kbd | key=<nowiki>ps aux | grep selenium</nowiki>}} on {{Linux}} | ||
* Checking the log file of standalone selenium server e.g. launching the server by the command {{kbd | key=<nowiki>sudo nohup java -jar selenium-server-standalone-3.141.59.jar > /home/user/selenium.log 2>&1 &</nowiki>}}. The log file was located at {{kbd | key=<nowiki>/home/user/selenium.log</nowiki>}} | * Checking the log file of standalone selenium server e.g. launching the server by the command {{kbd | key=<nowiki>sudo nohup java -jar selenium-server-standalone-3.141.59.jar > /home/user/selenium.log 2>&1 &</nowiki>}}. The log file was located at {{kbd | key=<nowiki>/home/user/selenium.log</nowiki>}} | ||
* (optional) Checking the port where the selenium server is running e.g. {{kbd | key=<nowiki>wget http://localhost:4444</nowiki>}} | |||
* Checking the error log file of HTTP server e.g. {{kbd | key=<nowiki>sudo tail /var/log/nginx/error.log</nowiki>}} | * Checking the error log file of HTTP server e.g. {{kbd | key=<nowiki>sudo tail /var/log/nginx/error.log</nowiki>}} | ||
* (optional) Checking the error log file of PHP-FPM e.g. {{kbd | key=<nowiki>sudo tail /var/log/www.access.log</nowiki>}} which its file path defined in the configuration file {{kbd | key=<nowiki>/etc/php-fpm.d/www.conf</nowiki>}} | |||
== How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException == | == How to resolve Uncaught Facebook\WebDriver\Exception\InvalidSelectorException == | ||
Line 26: | Line 28: | ||
* [https://chromedriver.chromium.org/downloads Download] the same version of ChromeDriver with the version installed on the computer or server | * [https://chromedriver.chromium.org/downloads Download] the same version of ChromeDriver with the version installed on the computer or server | ||
* You may need to stop the ChromeDriver in the process list if you could not overwrite the existing ChromeDriver file | * You may need to stop the ChromeDriver in the process list if you could not overwrite the existing ChromeDriver file | ||
** {{Win}} (1) | ** {{Win}} (1) Open the command prompt with the administrative permission (2) and keyin {{kbd | key=<nowiki>taskkill /IM "chromedriver.exe" /F</nowiki>}} to stop the ChromeDriver process | ||
** {{Linux}} | ** {{Linux}} | ||
* Overwrite the existing ChromeDriver file | * Overwrite the existing ChromeDriver file |