I have a selenium script which uses pyvirtualdisplay.Display with visible=0. The script runs fine when run manually but fails when run using cron job. I think it is due to the Xvfb and pyvirtualdisplay but I can't seem to fix it. The crontab command is * * * * * /python3 /location/to/the/script
Asked
Active
Viewed 201 times
0
-
What error do you see? – undetected Selenium Jun 02 '20 at 20:40
-
Chrome failed to start : exited abnormally. The process started from chrome location /ursr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed. – Mahfooz Khan Jun 02 '20 at 20:58
-
This is the same error when I dont add the pyvirtualdisplay or put visible variable in Display to 1. – Mahfooz Khan Jun 02 '20 at 20:59