The log throw me this :
element.until(EC.presence_of_element_located(By.XPATH("//*[@id='menu-item-9145']/a'")))
TypeError: 'str' object is not callable
Code trials:
class Descaro:
def __init__(self, driver):
self.driver = driver
def Descaro(self):
time.sleep(3)
self.driver.find_element_by_xpath("//*[@id='splashModal']/a[1]").click()
print("deberia estar en la pagina de fondo")
element = WebDriverWait(self.driver, 10)
element.until(EC.presence_of_element_located(By.XPATH("//*[@id='menu-item-9145']/a'")))
element.click()
I already try this:
element.until(EC.presence_of_element_located(By.XPATH, '//*[@id="menu-item-9145"]/a'')))
but doesn't work too , beacuse:
__init__() takes 2 positional arguments but 3 were given
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…