Hi Suman,
Thanks for replying :)
Actually I want to do it through Descriptive Programming approach.
I tried with this.
If Window("creationtime:=0 ").Dialog("Dialog:=Windows Internet
Explorer" ,"regexpwndtitle:=Windows Internet
Explorer").WinButton("text:=OK","window id:=").exist then
msgbox "Button Exist"
Window("creationtime:=0").Dialog("Dialog:=Windows Internet
Explorer" ,"regexpwndtitle:=Windows Internet
Explorer").WinButton("text:=OK","window id:=2").click
else
msgbox "Button doesnt Exist"
End if
but at the end I get the result that "Button doesnot Exists"
QTP is unable to recognise the WinButton.
Do you have any idea how to make this winbutton recognisible to QTP ?
Regards,
Suparna
On Aug 26, 9:32 am, suman ch <
suman...@gmail.com> wrote:
> What's th error message u r getting..?
>
> Is it Browser not identifying or Window or WinButton.
>
> Add the objects to a repository and then use the peoperties that used in the
> OR and try.
>
> It should be like this..
>
> Browser("creationtime:=0).Dialog("regexpwndtitle:="""name""").WinButton("name:=OK").Click
> Regards,
> Suman Ch
>
>
>
> On Fri, Aug 26, 2011 at 9:53 AM, Chethana KP <
chethu.ch...@gmail.com> wrote:
> > Suparna,
>
> > i think problem is object hierarchy .
>
> > it should be like this :
> > Window("nativeclass:=").Dialog("nativeclass:=" ,"regexpwndtitle:=").exist
> > or give 2 min wait before clicking on the button
>
> > Window("nativeclass:=").Dialog("nativeclass:=").WinButton("Name:=OK").click
>
> > and try to give unique mandatory properties for identification.
>
> > ~Chethana
>