You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
driver=webdriver.Firefox(firefox_options=options,
executable_path=geckodriver)
driver.get(url)
try:
element=WebDriverWait(driver, 20).until(EC.visibility_of_element_located(
(By.CSS_SELECTOR, ".tab-container")))
a= []
a=driver.find_elements_by_class_name("flex")
forxina:
print(x.text, 'text of the element')
finally:
driver.quit()
Or Wait a certian amount of time
driver=webdriver.Firefox()
driver.implicitly_wait(30) # secondsdriver.get(url)
a= []
a=driver.find_elements_by_class_name("app-content-score")
print(len(a), 'the len of A')