I need to be able to web scrape information daily on a website that requires login credentials. I have wrote a program in C# that uses Selenium and Chrome, which works well when run normally, or through the Windows Task Scheduler when selecting "run only when user is logged on". However, Chromedriver.exe stalls when selecting "run whether user is logged on or not", presumably because this option forces chrome to run in the background and thus my program is not able to enter in any login credentials. I need to be able to run this program whether the user is logged on or not, because it is on a server where multiple users may be accessing it at a time.
I have tried wrapping the execution of the .exe within a batch file and using different web browsers (firefox/Chrome).
I am looking for
- any solutions to make a Selenium app work as a background process with the Task Scheduler option "run whether user is logged on or not"
or
- a framework other than Selenium with which I can automate entering text and clicking, and which can work in the non-interactive mode that is launched through the windows Task Scheduler.
Thanks for reading my question.