Skip to content Skip to sidebar Skip to footer

Find And Click Element By Title Python Selenium

I am looking site. In inspect element see this: Get

With [0] at ending, case it was list.

Solution 2:

browser.find_element_by_xpath('//*[@title="Havai 30"]').click()

This Will Work for me Like you said.

Solution 3:

For java if someone was looking for the answer here like me:

String title="SOME TITLE";
driver.findElement(By.cssSelector("[title^='"+title+"']")).click();

Solution 4:

This works for me:

driver.find_element_by_xpath('//*[@title="Havai 30"]').click()

** Make sure you include the starting and ending square brackets!

Solution 5:

For me works with Page Object Pattern:

@FindBy(xpath = "//*[@title='Havai 30']")
WebElement imHavai;

Post a Comment for "Find And Click Element By Title Python Selenium"