FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

JS Submit #475

Open CAUN94 opened 1 year ago

CAUN94 commented 1 year ago

is a way to run a js function with goutte?

<input id="ingresar" onclick="submitForm()" name="ingresar" class="btn btn-success" style="width:390px;-webkit-border-radius:0 !important;-moz-border-radius:0 !important;border-radius:0 !important;text-align:center;font-size:18px;font-weight:bold;color:#fff;padding:20px 0;cursor:pointer;background-image:none;" value="Ingresar">

This html change and now i cant submit and when y fill the form i can´t send it.

stof commented 1 year ago

Goutte does not support Javascript. If you need support for JS, have a look at the symfony/panther package, which implements the symfony/browserkit API on top of WebDriver.

CAUN94 commented 1 year ago

Goutte does not support Javascript. If you need support for JS, have a look at the symfony/panther package, which implements the symfony/browserkit API on top of WebDriver.

can i combine that package with Goutte? or i need to create all the code again?