Answer the question
In order to leave comments, you need to log in
How to click on a button without id and name PhantomJS PHP?
I use the merlinthemagic phantom add-on to enter in the field or click on the button, I do this
$windowObj->mouseEventOnElement("[id=email]","leftclick");
$windowObj->sendKeyPresses($email);
$windowObj->mouseEventOnElement("[id=signInSubmit]","leftclick");
$windowObj->getDom();
$windowObj->focusElement("[name=namebutton]");
$windowObj->sendKeyPresses(array("Enter"));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question