I am using selenium to automate a mail verification process in a web application. I have a script already in place to login to gmail and read an activation mail received on the account. The script was perfectly working till yesterday but today I am facing a problem.
Additional Screenshot of issue
Gmail is not allowing sign in if the browser is launched with selenium. Says,
You're using a browser that Google doesn't recognize or that's setup in a way that we don't support.
Software used: "webdriverio": "^4.14.1", "wdio-cucumber-framework": "^2.2.8"
Any help is appreciated.
We can automate the Gmail login process using Selenium webdriver in Java. To perform this task, first we have to launch the Gmail login page and locate the email, password and other elements with the findElement method and then perform actions on them.
Automate Gmail Sequences & Drip CampaignsYou can also synchronize emails with Kanban boards and automatically apply shared Gmail labels. Gmelius stores all your templates in the “compose” window so you never need to keep a running list of follow-ups.
After some trial and error, found out that this issue happens only in a scenario when multiple gmail accounts have already been created from the same App/IP/Device. Google somehow is marking those accounts and blocks them if they are launched by automation frameworks/extensions.
Temporary Solutions:
My humble opinion is to entirely avoid automating the UI of third party Mail applications as you cannot predict how their UI and elements will change. They might block you from launching for security purposes and they have every right to do so!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With