How to test web application using QTP

qtp

I am new in QTP.

I need to test Web application using QTP.For study purpose I used Gmail login page,Using below Script

Systemutil.Run "http://www.gmail.com"
Browser("Title:=Gmail.*").Page("title:=Gmail.*").WebEdit("name:=Email").Set "xxxxxx"
Browser("Title:=Gmail.*").Page("title:=Gmail.*").WebEdit("name:=Passwd").Set "yyyyyy"
Browser("Title:=Gmail.*").Page("title:=Gmail.*").WebButton("name:=Sign in").click

After Gmail page open nothing happening at last geeting one error also

Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.

Line (2): "Browser("Title:=Gmail.*").Page("title:=Gmail.*").WebEdit("name:=Email").Set "xxxxxx"". 

Tip: If the objects in your application have changed, the Maintenance Run Mode can 
help you identify and update your steps and/or the objects in your repository.

Best Answer

Also check that your browser is supported by the version of your QTP!

Related Topic