Selenium script with pyvirtualdisplay and Xvfb not working on cron on linux vm

244 views Asked by At

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

0

There are 0 answers