Closed matze-berg closed 7 years ago
Hi, for the setHeader function, can you create a pull request? I will look into the bug. Thank for the info
I don't think it is a bug, it is more like you are trying to fill an input that does not exists in the context of your virtual browser
[info] [remote] attempting to fetch form element from selector: 'form#tsf'
and then the script stop because the element does not exists.
try this line instead:
$client->fillForm('form[action="/search"]', ['q' => 'Test'], false);
Ok, thats right. Now it works. Thank you.
I have submitted the Request.
Hi, what about a Function to set the Headers? So you can use:
The Function will be:
And my Issue is the following:
$this->client->fillForm('form#tsf', ['#lst-ib' => 'Test'], false);
This returns nothing. After this, the HTML is empty. Here is the complete code: