How can I click this button with goutte?

Viewed 430

I know that with goutte it's possible to click buttons that are inside of forms, but the button that I want to click doesn't have a parent form nor does it have a button id, so when I try to click this button with every technique possible with goutte(clicking by label or id) it doesn't work. Can anyone help me?

Here is the button that I want to click: enter image description here

function button1() { 
        require 'vendor/autoload.php';

        $client = new \Goutte\Client();
        $crawler = $client->get(the url);
        $form = $crawler->selectButton("select the button by some property")->form();            
        sleep(mt_rand(1, 5));
    } 
0 Answers
Related