O
O
OlegTemple2022-03-30 18:02:53
selenium
OlegTemple, 2022-03-30 18:02:53

Selenium cannot find the required element, what to fix?

I'm new to selenium, I'm writing an autotest. One of the parts - you need to go to another section. The whole point is that selenium finds the button in app-header-left, but not the one in app-header-right. Returns that the element could not be found.

Site code
62446e606d312313996362.png

My attempts:
input_voc = driver.find_element_by_xpath('//*[@id="app-header-right"]/button').click() - for left button, works

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question