I’m experiencing an issue with my web scraper running on a Linux server where it fails to locate elements using Selenium WebDriver. The scraper works perfectly fine on my local machine, but when I run it on the Linux server, it throws a NoSuchElementException....
I had an issue like this once. For me it was because the element wasn’t “on screen”. I would specify your resolution in your options and also there is another option to maximize the screen when the driver is instantiated.
I don’t think this would be the reason, but make sure you are using the Linux version of the driver.
Selenium WebDriver Fails to Locate Elements on Linux Server but works locally
I’m experiencing an issue with my web scraper running on a Linux server where it fails to locate elements using Selenium WebDriver. The scraper works perfectly fine on my local machine, but when I run it on the Linux server, it throws a NoSuchElementException....
Ska-P Jaque al Rey (youtu.be)