Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据文档https://github.com/epam/JDI
注意:您网站页面上的所有字段和方法都是静态的
为什么会有这样的要求?如果测试用例可以并行工作?例如,我们知道如果 webdriver 是静态的,我们就会遇到问题。
这不是要求。这是可能性。你可以使用非静态的。
我们推荐使用静态,因为这会使您的测试更短(使用静态导入)
由于驱动程序工厂为不同的线程管理不同的驱动程序实例,因此并行工作得很好。而元素只有“驱动程序名称”