DAFlores Posted June 17, 2024 Posted June 17, 2024 I have a Chrome Webdriver script that fills and submits some online forms. It runs fine if I am logged on the workstation and execute it but I can't seem to get it to run unattended as a scheduled task overnight. I think it has to do with the screen lock. Can someone point me in the right direction?
argumentum Posted June 18, 2024 Posted June 18, 2024 3 hours ago, DAFlores said: I think it has to do with the screen lock Yes. Keep the screen unlocked. The monitor can be off but the session needs a canvas for the browser. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Danp2 Posted June 18, 2024 Posted June 18, 2024 Maybe it will work as a headless browser? https://developer.chrome.com/docs/chromium/new-headless Latest Webdriver UDF Release Webdriver Wiki FAQs
DAFlores Posted June 20, 2024 Author Posted June 20, 2024 @Danp2 Would this require a whole new re-write of the script or is a there a way to run chrome in headless mode with chromedriver.exe? Thanks.
Danp2 Posted June 20, 2024 Posted June 20, 2024 It's a simple change to the Capabilities that is passed to _WD_CreateSession. See the example in the FAQ section on the wiki. DAFlores 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now