-1

I'm trying to automate a headless web browser using python and packages like pyquery, beautiful soup, requests, mechanize.

But so far I haven't found a right way to trigger a click event on a button. For example, to fill an online form, I'm able to insert values in the text fields, but not able to click on the Submit/Send button.

help-info.de
  • 6,695
  • 16
  • 39
  • 41

1 Answers1

1

According to the docs, pyquery isn't a library to interact with JS code (at least not yet). It is used to parse HTML Docs like beautiful soup.

As Nehal suggested, selenium is your best bet.

Tobey
  • 1,400
  • 1
  • 10
  • 25