H
H
Held69912021-07-30 01:43:50
Python
Held6991, 2021-07-30 01:43:50

How to find input through Selenium?

how to implement it correctly? (Error says element not found)

1) driver.find_element_by_xpath("//option[@value='Login']").click()
2) driver.find_element_by_class_name('button is-success').click()
3) driver.find_element_by_class_name('input.button is-success').click()

61032f094a204256159367.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Held6991, 2021-07-30
@Held6991

Solved in this way:

driver.find_element_by_xpath('//input[contains(@value, "Login")]').click()

Useful doc: https://www.toolsqa.com/selenium-webdriver/write-e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question