0

I am using Selenium to do some key clicking to choose a specific VPN from the VeePn Extension for Chrome. Everything works fine when I run the Python script manually, because it opens up the browser. But when I try to runt he same script through the Windows task scheduler, because it does not open the browser, it appears the key clicks are not being recognised, which I presume is because it is a headless browser?

So my question is, is there anyway to force the browser to open when the script is activated through task scheduler? Or is there a better solution to enabling and selecting a specific VPN from the extension?

Currently I have programmed in the screen co-ordinates of where I want to click the mouse, after maximising the browser window. Yes I realise not the best solution .

Thanks

I tried opening the Chrome browser independently and in a non headless mode, plus checked the search engines, but they all refer to the navigating a web page, opposed to controls on the web browser Have checked that I have the latest chrome-driver installed

5
  • By Task Manager, do you mean Task Scheduler? Commented Mar 5, 2024 at 13:49
  • Yes, and I have updated my question to show that now, sorry about that Commented Mar 5, 2024 at 15:34
  • Have you tried to use pyautogui? Commented Mar 5, 2024 at 15:52
  • I have not, but I will investigate that, thank you for the suggestion Commented Mar 6, 2024 at 14:41
  • You can look at this as a reference Commented Mar 7, 2024 at 4:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.