def movetoelement(cls):
log.step_normal("Element [%s]: Do movetoelement()" % cls.__name__)
# cls.__wait()
WebDriverWait(env.driver, 10).until(lambda the_driver:
the_driver.find_element(cls.by, cls.value).is_displayed())
element = env.driver.find_element(cls.by, cls.value)
action = webdriver.ActionChains(env.driver)
action.move_to_element(element)
action.perform()
time.sleep(3)
评论列表
文章目录