def wait(cls, selenium: webdriver.Remote):
# wait for Connect link in the top bar to be active
locator = (By.CSS_SELECTOR, '.active a[ng-href="#/{}/connect"]'.format(PLUGIN_NAME))
WebDriverWait(selenium, 30).until(EC.presence_of_element_located(locator))
评论列表
文章目录