06-14-2010, 03:19 PM
Hi All,
Using QTP with the help of Google Health, i generated script.
Script as follows.
Browser("Google Health").Page("Google Health").WebEdit("Email").Set "prasad.vemu"
Browser("Google Health").Page("Google Health").WebEdit("Passwd").SetSecure "4c15f7118fae6469dcc486116f1268717a985a76"
Browser("Google Health").Page("Google Health").WebButton("Sign in").Click
Browser("Google Health").Page("Google Health_2").WebElement("Medications").Click
Browser("Google Health").Page("Google Health_2").WebElement("Add medications to profile").Click
Browser("Google Health").Page("Google Health_2").WebEdit("WebEdit").Set "IBU-200, By mouth"
Browser("Google Health").Page("Google Health_2").WebButton("+ Add").Click
Browser("Google Health").Page("Google Health_2").Link("Sign out").Click
Browser("Google Health").Page("Google Health").Sync
Browser("Google Health").CloseAllTabs
When i run the same script. At Medication i am unable to got further. While recording this was taken as WebElement.Click but while running a message showing as "Cannot identify the Object "AddMedicationsto Profile". i.e Next line. Means if the medication link got clicked, Add medications to profile link will be seen.
Please Clarify on this.
Thanks
Arainspy
Using QTP with the help of Google Health, i generated script.
Script as follows.
Browser("Google Health").Page("Google Health").WebEdit("Email").Set "prasad.vemu"
Browser("Google Health").Page("Google Health").WebEdit("Passwd").SetSecure "4c15f7118fae6469dcc486116f1268717a985a76"
Browser("Google Health").Page("Google Health").WebButton("Sign in").Click
Browser("Google Health").Page("Google Health_2").WebElement("Medications").Click
Browser("Google Health").Page("Google Health_2").WebElement("Add medications to profile").Click
Browser("Google Health").Page("Google Health_2").WebEdit("WebEdit").Set "IBU-200, By mouth"
Browser("Google Health").Page("Google Health_2").WebButton("+ Add").Click
Browser("Google Health").Page("Google Health_2").Link("Sign out").Click
Browser("Google Health").Page("Google Health").Sync
Browser("Google Health").CloseAllTabs
When i run the same script. At Medication i am unable to got further. While recording this was taken as WebElement.Click but while running a message showing as "Cannot identify the Object "AddMedicationsto Profile". i.e Next line. Means if the medication link got clicked, Add medications to profile link will be seen.
Please Clarify on this.
Thanks
Arainspy