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 |
w is datatable
What is checkpoints for quicktest professional (qtp)?
What are default add-ins in qtp?
Hai anyone please "Explain about Framework in QTP?"
What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.
How do you open adobe acrobat file in QTP and do some testing on that file ?
I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?
How to Close all browsers in reverse order.
CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP
Can we use smart identification in Keyword Driven approach? If yes , How we can use. Please Explain?
how can you describe the basic flow of automation with conditional and programmatic logic?
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")