Abhilash, the problem here is, while trying to create a new user, it will ask for your phone number and send a verification code to that phone number. Your code after changing the xpath: Yes, now it is working properly using this. Email Required, but never shown. Below code worked fine for me just change the email id n password from your end:

Uploader: Mujar
Date Added: 16 September 2008
File Size: 62.45 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 96902
Price: Free* [*Free Regsitration Required]

Gmail – Compose mail using selenium webdriver | Automation Testing by Nithin Sasalu

There are 12 responses to this question on Selenium. So, here the issue which you are facing is that your xpath which identifies the email id uniquely is same for the recovery email id too. No I have not used the click option initially.

Email me if my answer is selected or commented on Privacy: Send us usiny email at support edureka. This is one of the most straight selemium ways, and there shouldn’t be any reason to reject you for this: Is there any other way to write the more effective code.

Samiran Banerjee just use the below code: Even if we use wait statement after userid box, we cannot automate the process of submitting the OTP which comes on the mobile number. Switching your job smartly. I want to encourage that you continue your great posts, have a nice weekend!


Just remember google have change their page. Below code worked fine for me just change the email id n password from your end: I hope it will help you. The mail contains the in-build signature text of the sender.

Gmail with Selenium web driver

Here’s the code to automate Login to Gmail using Selenium Webdriver: Actually, manually we can type the text in body by clicking on the text area. Are you able to move to next screen password screen 2. Create a WebDriver instance Navigate to a Web page. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

Ishan Dev Shukl’s Blog Testing beyond limits! Email me if a comment is added after mine. Email me at this address if my answer is selected or commented on: Please clarify your specific problem or add additional details to highlight exactly what you need.


You can simply send emails via SMTP if you want to do it programatically Samiran Banerjee 13 1 1 8. There seleniu certainly be other ways of tweaking the code to achieve the same thing.

Login to Gmail using Selenium Webdriver

Yes, now it is working properly using this. Your name to display optional: I enjoyed reading it; you are a great author. Automate the login process of facebook login. As per my understanding problem with gmail is: ENTER on the email field itself.

How to automate gmail login process using selenium webdriver in java | edureka! Forum

Here is the working code block to login into your Gmail account through a valid set of credentials. Your code after changing the xpath: Sign up using Email aitomate Password.

If this question can be reworded to fit the rules in the help centerplease edit the question.