J
J
Jairman2019-12-29 19:18:06
Python
Jairman, 2019-12-29 19:18:06

How to click on a button in selenium python?

There is an element on the browser page (screenshot, everything refers to one element there), you can click on it, but if you do it in the usual way, then nothing happens.

browser.find_element_by_xpath('/html/body/div[1]/div[7]/div[2]/div[1]/div[2]/div/div[5]/div[9]/div[1]/div[1]/div[3]/div/a/span[2]').click()

Xpath - //*[@id="iteminfo1_item_market_actions"]/a[1]/span[2]
5e08d1a06062c812952767.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cunning-seal, 2020-01-04
@cunning-seal

I can be wrong, but I am tormented by vague doubts that you need to click on this span. In any case, the element's parent is the a tag, in fact, href sticks out in it for some operation. Look, maybe you need a block a level higher or the link itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question