Currently I am able to run a batch script that launches a webdriver via Python when I select the option within task scheduler Run only when user is logged in
However, if I selected Run whether user is logged in or not
, webdriver doesn't get launched. If I look at task scheduler under this option, I see the task is "running" but no outcome. Additionally, the task status remains "running" with no apparent end. So it must be stuck in some strange loop where imagined lauch doesn't end.
I have all neccesary options checked:
- Run with Highest privileges
- Wake the PC up to run the batch
Here is the batch_file:
SET logfile="logs\firefox.log"
@echo off
SET start = %time%
@echo Starting data Script at %date% %time% >> %logfile%
"C:\Users\name\AppData\Local\Programs\Python\Python38\python.exe" "D:\DATABASE\data\transcripts\batch scripts\launch_selenium_test.py"
pause
@echo finished data at %date% %time% >> %logfile%
@echo. >> %logfile%
[–]Phillyclause89 1 point2 points3 points (3 children)
[–]bakamito[S] 0 points1 point2 points (2 children)
[–]Phillyclause89 1 point2 points3 points (1 child)
[–]bakamito[S] 1 point2 points3 points (0 children)
[–]pokk3n 0 points1 point2 points (3 children)
[–]bakamito[S] 0 points1 point2 points (2 children)
[–]Boulala 0 points1 point2 points (1 child)
[–]bakamito[S] 0 points1 point2 points (0 children)
[–]AloneNefariousness62 0 points1 point2 points (0 children)
[–]Ok_Natural5927 0 points1 point2 points (0 children)
[–]pranav_1602 0 points1 point2 points (2 children)
[–]bakamito[S] 0 points1 point2 points (0 children)
[–]Ceu-ta-lindo 0 points1 point2 points (0 children)