I am new in Selenium WebDriver and currently using Python. I was wondering how to define condition for this, I just want to select/click one from these list with Status "Negotiation" only. I tried to define the element this way:
#choose requests with "Negotiation" status
element_negoreq = driver.find_element_by_xpath('//*[@id="q-app"]/div/div[2]/main/div/div[2]')
if (element_negoreq.text == "Negotiation"):
element_negoreq.text.click()
print("Success click Request with status NEGOTIATION")
But still error. It cannot find the element. Here's the element details in HTML DOM
Just wondering is it possible to do so? Appreciate if someone can help. Thanks!
Aucun commentaire:
Enregistrer un commentaire