Issue
I know how to call a method to maximize window from driver object.
driver.maximize_window()
But what method should I use when I need to minimize browser window (hide it)? Actually, driver object hasn't maximize_window attribute. My goal to work silently with the browser window. I don't want to see it on my PC.
Solution
Maybe try a headless browser? Chrome headless or PhantomJS.
Keep in mind that development is suspended for Phantom js. You may want to use other alternatives if it doesn't work or gives errors -
https://github.com/dhamaniasad/HeadlessBrowsers
A headless browser is a web browser without a GUI.
Answered By - Sahil Agarwal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.