How to work while Selenium tests are working

后端 未结 2 1175
孤城傲影
孤城傲影 2021-01-25 12:53

When I write automated tests and run them (on my PC) I can not work until the tests are finished, because for example if I am coding the focus will jump out of visual studio to

相关标签:
2条回答
  • 2021-01-25 13:41

    You can use Windows 10 Virtual Desktops. Check here how to use it: https://www.howtogeek.com/197625/how-to-use-virtual-desktops-in-windows-10/

    0 讨论(0)
  • 2021-01-25 13:49

    Not only you can't prevent the WebdDiver from taking the focus, you shouldn't do it. The WebdDiver needs the focus on the browser in order to successfully interact with it. If you take the focus the WebdDiver won't be able to perform actions like FindElement(), Click() or any other operation and the tests will fail.

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