DAFlores Posted June 17 Share Posted June 17 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? Link to comment Share on other sites More sharing options...
argumentum Posted June 18 Share Posted June 18 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. Link to comment Share on other sites More sharing options...
Danp2 Posted June 18 Share Posted June 18 Maybe it will work as a headless browser? https://developer.chrome.com/docs/chromium/new-headless Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
DAFlores Posted June 20 Author Share Posted June 20 @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. Link to comment Share on other sites More sharing options...
Danp2 Posted June 20 Share Posted June 20 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 Link to comment Share on other sites More sharing options...
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