0
I’m looking for the Aria-label attribute using Selenium with the code below, but I can’t find it.
xpath = driver.find_element_by_xpath('//*[@id="frmKey"]/fieldset/div[2]/div[1]/a[1]').__getattribute__("aria-label=")
print("Resultado")
print(xpath)
0
I’m looking for the Aria-label attribute using Selenium with the code below, but I can’t find it.
xpath = driver.find_element_by_xpath('//*[@id="frmKey"]/fieldset/div[2]/div[1]/a[1]').__getattribute__("aria-label=")
print("Resultado")
print(xpath)
0
Good morning, try it this way below. Selenium has a method get_attribute that does just that, something else doesn’t need to put the sign of equal(=)
print("Resultado")
print(xpath.get_attribute('aria-label'))
Browser other questions tagged python xpath
You are not signed in. Login or sign up in order to post.