Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97804

Unable to automate the click of a button in Selenium with Python

$
0
0

I am trying to automate the log in process to WebAdvisor. I have tried to select the "Log In" button by calling different elements. Each attempt so far has been unsuccessful.

My current code:

path = '.../chromedriver

driver = webdriver.Chrome(path)

url = 'https://webadvisor.barry.edu/

driver.get(url)

The below have been unsuccessful.

driver.find_element_by_id('acctLogin').click()

driver.find_element_by_name('Log In').click()

driver.find_element_by_link_text("Log In").click()

This is the section of the code related to the button I am trying to click on in the WebAdvisor website:

Html code of WebAdvisor

The expected result is the log in page. At the moment it does not change page.


Viewing all articles
Browse latest Browse all 97804

Trending Articles