1

enter image description here

I'm having trouble clicking the Sign Up Now button which seems to be different than an input type button. It is also using ng-click and not sure how I can click on the button after multiple failed attempts.

Thank you for the help!

2 Answers2

1

Try copiing the XPath and then using driver.find_element_by_xpath(copied xpath) function for locating the element and then check this out - may help with clicking.

Danny
  • 55
  • 6
  • I was able to find a solution through the use of ActionChains and XPATH, a = driver.find_element_by_xpath("XPATH") action = ActionChains(driver) action.move_to_element(a).perform() driver.execute_script("arguments[0].click();", a) Thank you for the replies! – lostandconfused Mar 18 '21 at 19:53
0

You can select it by name as JD2775 said, if you want to read a little more about it https://selenium-python.readthedocs.io/locating-elements.html

you can try with

btn = driver.find_element_by_name('btnSignUp').click()

or

btn = driver.find_element_by_name('btnSignUp')
btn.click()

or something like that

Arguel
  • 1
  • 1
  • I have just found a solution through an alternative method, I believe I did try finding it by name and it still wouldn't click. Thank you for the reply though! – lostandconfused Mar 18 '21 at 19:56