Hi Shiva,
I did develped one such application where based on logged user (Admin or 
normal user) the elements in the web page change 
So,
First ; check the loggers privileges Admin/Normal user
then , check and take a count of the buttons ( or verify with the button_id 
name )
so based on that write a simple If Else logic to click the corresponding 
button.

All the best.
Regards,
Azhar







On Friday, July 12, 2013 4:35:16 PM UTC+5:30, siva -QA 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.


Reply via email to