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 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 |
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 |
if you run one test script in internetexplorer the same test you run in mozilla ffirefox is it possible or not how is it.
How to handle Run-time errors?
What is log file? what is the use of Log fine. How to create? what are the contents and the main advantages of log files. plz do help me in this concepts as i have an interivew on qtp in a couple of days. plz do help me.. thanks in Advance.
What is the exact difference between QTP and RFT ?
How is UFT 11.5 version different from UFT 12.0?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
How can we change(increase or decrease)the size of a array variable with out loosing the previous values
1 Answers DST Global Solutions,
Can we test GUI of the application using QTP.? How.?If possible briefly explain process.?
What is Distributed testing? How does UFT support it?
Hi All, How to get repeated word in string . Thanks Balaji
How will you compare keyword and expert view?
What are the features of quick test pro(qtp)?