Micro Focus QTP (UFT) Forums
Not able to record the 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: Not able to record the script (/Thread-Not-able-to-record-the-script)

Pages: 1 2


RE: Not able to record the script - KavitaPriyaCR - 10-25-2010

Hi Jain, below script will work try this
One thing is, here when i click on LogIn button i am getting invalid user name and password, provide proper UID and PWD and try.

Code:
Browser("Title:=Online Shopping: .*").Page("Title:=Online Shopping: .*").WebElement("html tag:=A","class:=header_myaccount","Index:=0").Click
Browser("Title:=Indiatimes Shopping .*").Page("Title:=Indiatimes Shopping .*").WebEdit("name:=login").Set "username"
Browser("Title:=Indiatimes Shopping .*").Page("Title:=Indiatimes Shopping .*").WebEdit("name:=passwd").SetSecure "4c9b5ade2cf6c7834d11869fc78b2b70eb3805a4ef0c"
Browser("Title:=Indiatimes Shopping .*").Page("Title:=Indiatimes Shopping .*").Image("file name:=sign-in.jpg").Click 40,12

Pls lemme know if it won't