Trying to create a function if value if present then pass if not then fail
but its not working for me. So if child object is not present it should go
to finance is not present
Function Text_Insert1(fText)
Set d=description.Create
d("micclass").value="WebElement"
d("class").value=fText
Set myo=browser("title:=.*").page("title:=.*").childobjects(d)
d("innertext").RegularExpression=false
If myo(0).childobjects(d).exist Then
msgbox myo(0).getroproperty("innertext")
else
msgbox "finance is not present"
End If
' fItem=myo(0).getroproperty("innertext")
Set d=nothing
Set myo=nothing
End function
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.