Reputation: 31
I'm using Selenium Framework to automate the browser operations. Currently what I try to do is to hide the browser. Is there any possible chances to hide the Browser and execute the operation silently?
Upvotes: 0
Views: 894
Reputation: 21
There is no direct way to do that via Selenium.
But, there is an workaround if your code is compiled to an .exe (Console based application) through the Windows Task Scheduler.
If you schedule the .exe file in the Windows Task Scheduler, you will get an option named - Run whether user is logged in or not in General tab of the scheduled task property. Please refer the screen here - TaskSchedulerProperties
Once you check it and save, the system will prompt for the user name and password for the account through which the task will be executed. Provide correct username and password and save it.
From the next execution all execution for that .exe file will be running in the background.
Hope this helps. Let me know the outcome.
Upvotes: 2