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