Script to check whether yahoologinpage(www.yahoomail.com) checkbox is checked or not
Set g=Browser("name:=Yahoo.*").Page("title:=Yahoo.*")
Set obj=Description.Create
obj("htmltag").value="Input"
obj("ClassName").value="webcheckbox"
obj("type").value="checkbox"
Set a=g.childobjects(obj)
c=a(0).getroproperty("checked")
msgbox(c)
If c=0 Then
msgbox "checkbox is not checked"
else
msgbox"checkbox is checked"
End If
QTP Faqs
Manual Faqs
Load Runner Faqs
Testing Faqs Resources
Descriptive Programming for Yahoo Login Page
D.P for checkbox
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment