Scalatest PlusPlay Selenium not able to resize a window

后端 未结 1 1144
小鲜肉
小鲜肉 2021-01-27 17:07

Been digging at this for a while, and I can\'t seem to find a way to resize a window using scalatest plus.

The only method I\'ve found searching online or the documentat

相关标签:
1条回答
  • 2021-01-27 17:16

    I was able to resolve this issue by adding the following line of code:

    webDriver.manage.window.setSize(new org.openqa.selenium.Dimension(1000, 600))
    

    it's not very intuitive, since we have to explicitly access the implicit webdriver, but it works.

    0 讨论(0)
提交回复
热议问题