Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google account sign in button click not working #572

Open
Kronenu opened this issue Oct 5, 2022 · 1 comment
Open

google account sign in button click not working #572

Kronenu opened this issue Oct 5, 2022 · 1 comment

Comments

@Kronenu
Copy link

Kronenu commented Oct 5, 2022

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:

3C938906-2D12-432E-BD4A-ACDC4A4CE703

The button html for the Next button is the following:

8D926C11-5547-413E-B7EE-8A43B2788F9E

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.

@Kronenu Kronenu changed the title google account sign in button click on working google account sign in button click not working Oct 5, 2022
@shadydealer
Copy link

Is the button inside an iframe? If so, you would need to follow the steps explained in #446 (comment)

and then attempt to click the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants