是否有可能在机器人测试运行期间让开发工具(检查器)保持打开状态? 我在我的“半自动”测试中包含了一个手动步骤,我在其中打开了开发工具 (F12),但是在为 Execute Manual Step 其他自动化点击了 PASS 之后步骤如下,开发工具立即自动关闭。 只是我的测试结构的概述:
Semi-automated robot test
do some automated steps
execute manual step open developers console
do some other automated steps
execute manual step check something in dev console
我不知道如何在机器人测试期间处理开发工具。即使我在手动步骤中在单独的窗口中打开开发工具,它在自动步骤中仍然关闭...
感谢任何想法:-)
请您参考如下方法:
这是不可能的。来自 ChromeDriver help center
When you open the DevTools window, ChromeDriver is automatically disconnected. When ChromeDriver receives a command, if disconnected, it will attempt to close the DevTools window and reconnect.
If you need to inspect something in DevTools, the best you can do now is pause your test so that ChromeDriver won't close DevTools. When you are done inspecting things in Chrome, you can unpause your test and ChromeDriver will close the window and continue.
