![]() |
|
Help required on Generated Script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Help required on Generated Script (/Thread-Help-required-on-Generated-Script) |
Help required on Generated Script - arainspy - 06-14-2010 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 RE: Help required on Generated Script - manabh - 06-14-2010 Hi After clicking "Sign In" , insert a wait statement, so that page will get uploaded & then it will find the objects. |