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

Bot gets stuck at username field #32

Open
gameuser1982 opened this issue Dec 3, 2023 · 5 comments
Open

Bot gets stuck at username field #32

gameuser1982 opened this issue Dec 3, 2023 · 5 comments

Comments

@gameuser1982
Copy link

The bot gets stuck at username field. Gmail pre-generates a few username plus includes the option to make your own. This seems to be a new form field as the bot doesn't recognize it and tries to click next resulting in gmail throwing an error. The bot then loops back to the beginning and attemps to create a new account.

Any fix for this? Is there a way to run this without proxy so I can avoid the sms verificaiton?

@xD-E-A-T-Hx
Copy link

What error does gmail throw. Can you please share.

Also to prevent proxies, comment out the line

seleniumwire_options['proxy'] = proxy_options

Should do the trick.

@gameuser1982
Copy link
Author

What error does gmail throw. Can you please share.

Also to prevent proxies, comment out the line

seleniumwire_options['proxy'] = proxy_options

Should do the trick.

Apologies for the delay in response, and thank you again for taking the time to reply.

I just tried it again now and it seems to be going through fine. If I see it again I'll let you know and take screenshot, and then run it a second time with python debugger. Thanks for helping the community, I see you are very active here and did a lot of contribution to this bot in addition to the original dev.

@gameuser1982
Copy link
Author

Okay I am reopening this because I have been able to catch circumstances where the bot doesn't fill out the username field:
Screenshot (1846)

In the above example the bot press to hit next instead which causes gmail to throw up an error. Eventually the bot gives up and starts over. Issue open happens from time to time. Often times the username creation page is the one the bot expects and fills it out fine.

Also some of the free proxies from that free proxy library seem to present a different sign up page which confuses the bot:

Screenshot (1842)
Screenshot (1843)

@xD-E-A-T-Hx
Copy link

xD-E-A-T-Hx commented Dec 11, 2023

, I see you are very active here and did a lot of contribution to this bot in addition to the original dev.

Thank you. I work in my own project and just bounce here to help members out.

I'd assume the different pages that are loaded are due to the regions the free proxies go from. I prefer to use my own private proxies for this type of thing then I'm guaranteed certain conditions like location, language etc.

Next the username issue. I'd personally say there is a problem with the bot finding the correct element. Wether this is due to the time it takes to load the page (proxy delay) or just python being python lol. Maybe change the delays to wait a bit longer. I think mine are personally set between 4 and 12 seconds. Not been on it in about 2 weeks so not 100% sure what it's set to.

@ProfoundPenguin
Copy link

replacing
"username_select":'//[@aria-posinset="3"]',
with
"username_select":'//
[@id="view_container"]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/span/div[3]',

should solve the issue
Cheers

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

4 participants
@gameuser1982 @ProfoundPenguin @xD-E-A-T-Hx and others