conditions element selenium

PHOTO EMBED

Wed Feb 23 2022 18:57:14 GMT+0000 (Coordinated Universal Time)

Saved by @rabiizahnoune #python #selenium

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


WebDriverWait(web,10).until(
    EC.text_to_be_present_in_element(
        (By.CLASS_NAME,"_8eso"),"Avec Facebook, partagez et restez en contact avec votre entourage."
    )

)
content_copyCOPY