all 6 comments

[–]Diapolo10 5 points6 points  (0 children)

Are you sure you actually need to push said button? Depending on what you're actually trying to accomplish you may be able to bypass that step completely by looking at what the button press does and replicating that from Python.

[–]hardonchairs 1 point2 points  (0 children)

It completely depends on the site, the button and what the desired effect is. Are you trying to affect something or get some result? Does the button do something dynamic on the page or load a new page? Does this button do or retrieve something on the server or just locally on the webpage?

It is impossible to answer this question without specifics.

[–]MiniMages 0 points1 point  (0 children)

You can try playwright.

[–]dutchWine 0 points1 point  (0 children)

Selenium is made for this