Hi,
Here is below code works
If
Browser("creationtime:=0").Page("micclass:=Page").Webbutton("name:=Button3").Exist
Then
Browser("creationtime:=0").Page("micclass:=Page").Webbutton("name:=Button3").click
Elseif
Browser("creationtime:=1").Page("micclass:=Page").Webbutton("name:=Button2").Exist
Then
Browser("creationtime:=1").Page("micclass:=Page").Webbutton("name:=Button2").Click
End If
Creatiome 0 means Admin Br, 1 means anotther Br.
Thanks,
Bhuvan
On Fri, Jul 12, 2013 at 4:35 PM, Siva Prasad <[email protected]> wrote:
> Need solution ,
>
> One browser (say: admin) consist of 3 buttons ( button 1 ,button 2 ,
> button 3) and another browser (say : user) consist of 2 buttons (button 1
> , button 2)
>
> Now , the question ask in interview is:
>
> In one condition , you need to execute or working like , if admin
> opens/activate need to click the button 3 , if user opens/activate then
> click button 2.
>
>
> Thanks & regards,
> S.Siva prasad.
>
> --
> --
> 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.
>
>
>
--
Thanks,
Bhuvan
9640391013.
--
--
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.