How to resize/maximize Firefox window during launching Selenium Remote Control?

后端 未结 9 1261
眼角桃花
眼角桃花 2020-12-14 07:47

I am using Selenium Remote Control . During executing the tests the actual Firefox window is so small. I want it full screen so I can see what is happening. How can I maximi

9条回答
  •  伪装坚强ぢ
    2020-12-14 08:10

    Selenium 2.31.0

    driver = webdriver.Firefox()
    
    # Resize the window to the screen width/height
    driver.set_window_size(300, 500)
    
    # Move the window to position x/y
    driver.set_window_position(200, 200)
    

提交回复
热议问题