About running cron

Asked 1 years ago, Updated 1 years ago, 68 views

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.

macos selenium selenium-webdriver cron

2022-09-30 16:05

1 Answers

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.


2022-09-30 16:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.