Quality Testing

Quality is delighting customers

Hello guys...Below is the descriptive code for gmail login but not able to run it...need help!

SystemUtil.Run"iexplore.exe", "www.gmail.com"
wait 10

Set OBrowser =Description.create
Set OPage= Description.Create
Set OButton =Description.Create
Set OUsername=Description.Create
Set OPassword=Description.Create

OBrowser("name").value = "Gmail: Email from Google"
OPage("title").value = "Gmail: Email from Google"

OUsername("html id").value="Email"
OUsername("name").value="Email"
OPassword("name").value="Password"
OPassword("html id").value="Password"
OButton("name").value = "Sign in"
OButton("html id").value="sign In"
OButton("x").value = "451"

Browser(OBrowser).page(OPage).WebEdit(OUsernamel).Set "dhanraj.gore1"
Browser(OBrowser).page(OPage).WebEdit(OPassword).SetSecure "123asdf123asdf"
Browser(OBrowser).page(OPage).Image(OButton).click

Views: 243

Reply to This

Replies to This Discussion

This is not the way to send an email using any email.

Use COM to do it, google it for the same.

refer this article for more information on Logging into Gmail using different sets of user name password

Thank you Arvi :)
Thank you Subbu :)
I got the solution.

SystemUtil.Run"iexplore.exe", "www.gmail.com"
wait 10

Set OBrowser =Description.create
OBrowser("creationtime").value="0"
Set OPage= Description.Create
Opage("micclass").value="Page"
Set OButton =Description.Create
Set OUsername=Description.Create
Set OPassword=Description.Create




OBrowser("name").value = "Gmail: Email from Google"
OPage("title").value = "Gmail: Email from Google"
OUsername("name").value="Email"
OUsername("html tag").value="INPUT"
OUsername("type").value="text"

OPassword("name").value="Passwd"
OPassword("type").value="password"
OPassword("html tag").value="INPUT"
OButton("name").value = "Sign in"


Browser(OBrowser).page(OPage).WebEdit(OUsername).Set "GmailUser"
Browser(OBrowser).page(OPage).WebEdit(OPassword).SetSecure "502343432149bedbc3419ff1c95988a647f34d458e376a529a539da8b6ddab6be"
Browser(OBrowser).page(OPage).WebButton(OButton).click

Again,  This is not the way to send email.

Why?

If GMail UI been changed then you will be in trouble (some maintenance required).

Solution:

Use GMAIL COM, I have code but kept somewhere, i will find it this week end and post here.

Happy Diwali.

Subbu.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service