Use childobjects property on obj_WebBrowser object in code 1 & then use
getROpropery over it.
It will definitely work. Let me know if you will have any issue.
On Saturday, July 27, 2013 11:51:07 AM UTC+5:30, Pankaj Dhake wrote:
>
> I have an situation where I need to identify object runtime whose
> properties change runtime. I am usgin following both codes I am getting an
> error. Please find malicious code & update me whats wrong with it.
>
>
> Code 1:
> SystemUtil.Run "iexplore.exe","localhost"
> Set obj_WebBrowser = Description.Create
> obj_WebBrowser ("micclass").value = "Browser"
> obj_WebBrowser ("name").value = "Microsoft Internet Explorer"
> Set varProp =Browser(obj_WebBrowser).GetRoProperty("title")
>
>
> Cannot identify the object "[ Browser ]" (of class Browser). Verify that
> this object's properties match an object currently displayed in your
> application.
> Line (13): "Set varProp =Browser(obj_WebBrowser).GetRoProperty("title")".
> 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.
>
>
>
> C
> ode 2
>
> SystemUtil.Run "iexplore.exe","localhost"
> set var = Browser("micclass:=Browser").GetROProperty("title")
> MsgBox var
>
> Object required: '[string: "Windows Internet Exp"]'
> Line (2): "set var = Browser("micclass:=Browser").GetROProperty("title")".
>
> ---
> Regards,
> *PANKAJ*
>
>
>
--
--
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.