我用WebDriver等等,但我有个问题。 页面上出现一个元素,该元素在3秒后消失。我想在这段时间内停止测试,并在这段时间后恢复测试(不睡觉)。我怎么能做到?我喜欢WebDriver:
WebDriverWait(self.driver, 15, poll_frequency=0.5, ignored_exceptions[ElementNotVisibleException, ElementNotSelectableException,NoSuchElementException, WebDriverException]).until(expected_conditions.element_to_be_clickable(FormPage.name))
您可以使用
invisibility_of_element_located
预期条件:PS:您可以使用任何其他定位器(ID、名称等)。你知道吗
希望对你有帮助!你知道吗
相关问题 更多 >
编程相关推荐