if there is two login button in your page, how you know that
this login button is correct for login .

Answers were Sorted based on User's Feedback



if there is two login button in your page, how you know that this login button is correct for logi..

Answer / nagesh

If there are two login buttons,then go with index value
using descriptive programming.first we should make sure that
which login button navigate to required page.then give
corresponding index value as property in script as follows.

Broser("BR").page("PG").webbutton("index:=2").click

or

set objbutton=Description.Create()
objbutton("micclass").value="Webbutton"
objbutton("index").value="2"

browser(br).page(pg).webbutton(objbutton).click

Is This Answer Correct ?    2 Yes 1 No

if there is two login button in your page, how you know that this login button is correct for logi..

Answer / rangalnrt

But before going operate the button check whether that button is enabled or disabled


set objbutton=Description.Create
objbutton("micclass").value="Webbutton"
objbutton("name").value="login"

set childs = B().P().childobjects(objbutton)

for i=0 to childs.count-1 step 1

if Broser("BR").page("PG").webbutton("index:="&i).getroproperty("Enabled") then
Broser("BR").page("PG").webbutton("index:="&i).Click
end if

Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

w is datatable

5 Answers   CTS, IBM,


What is checkpoints for quicktest professional (qtp)?

0 Answers  


What are default add-ins in qtp?

14 Answers   Semantic Space,


Hai anyone please "Explain about Framework in QTP?"

0 Answers  


What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.

1 Answers  






How do you open adobe acrobat file in QTP and do some testing on that file ?

0 Answers  


I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?

4 Answers   IBM,


How to Close all browsers in reverse order.

3 Answers   Marlabs,


CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP

2 Answers  


Can we use smart identification in Keyword Driven approach? If yes , How we can use. Please Explain?

1 Answers  


how can you describe the basic flow of automation with conditional and programmatic logic?

1 Answers   Ordain Solutions,


Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")

2 Answers  


Categories