I would like to use cron to run Selenium WebDriver on time, but I would like to know if cron can be run under the following circumstances.
US>Status
The PC(mac) will be screen-locked in a certain amount of time.
Questions
1. Does the cron run even with the screen lock on?
(I found some descriptions that it doesn't work when I look into it myself, but I couldn't find a description of whether or not it can be done with a screen lock.)
2. Can WebDriver test the web even if the screen lock is on?
I don't mind answering only one question, so please let me know.
Thank you for your cooperation.
Yes.
WebDriver specifications suggest that it is possible, but it may depend greatly on the implementation of each browser, so try it with the target browser.
Personally, I recommend using some task scheduler (such as Jenkins) that can guarantee detailed assumptions such as whether or not there is a desktop session at runtime, rather than cron.
© 2024 OneMinuteCode. All rights reserved.