For a scheduled task I want the selenium webdriver to be executed with python script.
I have tried the following solution:
But it has not resolved the problem.
Location of chromdriver:
~/Documents/Python/Chromedriver/chromedriver
For a scheduled task I want the selenium webdriver to be executed with python script.
I have tried the following solution:
But it has not resolved the problem.
Location of chromdriver:
~/Documents/Python/Chromedriver/chromedriver
Specify full paths in cron.
The next cron job includes:
DISPLAY
variable specified to access your display in case if you do not want to use headless mode. Use$ env | grep DISPLAY
to get it.PATH
variable with path tochromedriver
specifying. I've copiedchromedriver
to/usr/local/bin
python3.8
$ crontab -e
:In your case specify path to your chromdriver location:
Note: I've created a python project in PyCharm using the next parameters:
The script is taken from here:
Additionally I have been required to install some packages: