I have tried several code snippets I found non did the job for me. Also, I inspect and found that the element am trying to select has ID so
find_element_by_id
didn't work. I ahd also tried
find_element_by_xpath and find_elements_by_name
Non of them worked. I want to be able to select a checkbox on this website
My code looks like this:
from selenium.webdriver.common.keys import Keys
url = "the web page above"
# Creates an instance driver object for chrome browser...
driver = webdriver.Chrome()
# Get the url
driver.get(url)
driver.maximize_window()
# Find list elements by id and click/select on it....
driver.find_element_by_xpath(".//*[contains(text(), 'Osborne & Little')]").click()
Aucun commentaire:
Enregistrer un commentaire