I'm working on a test script using PHP and Panther which requires me to first login to my Google account to then access my app. I've tried a whole bunch of different ways of getting the script to click on the Next button during sign-in:
The button html for the Next button is the following:
The script executes without any error but in no_headless the button never gets clicked and I'm not able to proceed. Any thoughts and ideas on what I'm doing wrong here?
I'm working on a test script using PHP and Panther which requires me to first login to my Google account to then access my app. I've tried a whole bunch of different ways of getting the script to click on the Next button during sign-in:
The button html for the Next button is the following:
This is my script with Panther:
`use Symfony/Component/Panther/Client; require DIR.'vendor/autoload.php';
$client = Client::createFirefoxClient; $client->request('GET' 'https://accounts.google.com/ServiceLogin?service=mail&passive=true&Email=example@domain.com'); $client->executeScript('document.querySelector('VfPpkd-LgbsSe').click(); $client->quite();`
The script executes without any error but in no_headless the button never gets clicked and I'm not able to proceed. Any thoughts and ideas on what I'm doing wrong here?
Thanks for the help in advance.