Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97807

Python Selenium Chrome turn off the headless option while running

$
0
0

I'm using Selenium in Python. And I'm opening the WebBrowser with Chrome. I've added the option "headless" to the WebBrowser so it won't show it on the screen. But I want at some point to show the WebBrowser on the screen(Remove the "headless" option).

I want to open a WebBrowser and let it load a website(takes like 15 seconds) while I can't see it(In headless mode). And later show me the WebBrowser with the loaded Website.

I have tried to simply change the window position out of the screen when starting the WebBrowser, but you can still see the Chrome for a few seconds before it gets to change the window position(Because the code stops when it's loading).


Viewing all articles
Browse latest Browse all 97807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>