I need Selenium to open it's web browser in a larger resolution ( preferably maximized)

前端 未结 4 2008
广开言路
广开言路 2021-01-01 14:46

I am using Selenium WebDriver and coding in Python

I have looked all over the place and the best I could find were things written in different languages. I also trie

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-01 15:10

    You can either use selenium.windowMaxmize(); or if you want to run your test in some specific resolution,You can go with

    selenium.getEval("window.resizeTo(X, Y); window.moveTo(0,0);")

提交回复
热议问题