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 |
Tell some commonly used Excel VBA functions?
regular expression in qtp standar check point for months from accepting months from january to december only
How do you change Logical Name of the object in test script?
How u call functions in QTP
Did the scripts need lot of maintenance? If yes, why?
What is the difference between functions and actions in QTP?
How will you set a unique four digit number in an edit field in QTP?
Which object model ur used in ur project
UFT 12.02 which ALM version will support
Explain the parameter in qtp?
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,
What is the script for database check point, bitmapchek point, regular expression ?