Corion / WWW-Mechanize-Chrome

automate the Chrome browser

Home Page:https://metacpan.org/release/WWW-Mechanize-Chrome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for POST form submission

c-alpha opened this issue · comments

It is sorely missed that ->submit_form is not able to submit using POST. There are many forms out there that use it.

Can you show example code where this fails? The test suite includes POSTing a form in t/50-form-with-fields-gh48.t , t/51-mech-submit.t and t/60-mech-custom-headers.t , so I'm interested in situations where this fails.

Ideally, can you please modify one of the tests (or write a new one) where it fails?

Thanks!

Thanks for your swift response!

After further investigation, I am actually no longer sure this is a valid one. The site for which I am writing my script is for fixing appointments with city council offices, and they seem to be trying to deter scripts by doing everything in JS.

I ended up using ->set_fields followed by ->click_button, which does the trick for me.

As there doesn't seem to be a "smoking gun" in my case, I'm closing this issue.