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 |
Does quicktest professional (qtp) is unicode compatible?
difference between GetRoProperry and GetToProperty.and where we've to use exactly those properties
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
What are some test assets and related extensions of qtp?
how we will use output values in qtp? is there any possibulity by descriptive programming?
What is chaild object method? When we will go for chaild object method? How to use chaild object method?
How many ways we can parameterize data in QTP?
What r the advantages of automation?
Explain building blocks of the bpt framework ?
How to use the Object spy in QTP 8.0 version?
write a qtp script to enter user name & password for flight reservation login page from excel sheet
How to handle the exceptions using the recovery scenario manager in qtp?