我在Selenium WebDriver中使用Java编写了一些测试用例,并在网格(集线器和多个节点)上执行它们.我注意到一些测试用例由于失败而失败NoSuchElementException.什么是最好和最有效的方法来避免NoSuchElementException和确保始终找到元素?
NoSuchElementException
java selenium-grid selenium-webdriver nosuchelementexception
java ×1
nosuchelementexception ×1
selenium-grid ×1
selenium-webdriver ×1