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 |
How to explain a banking project in interview as a test engineer???
How can we use the "CreateObject ("Scripting.FileSystemObject")" in QTP and what is the definition and purpose of it?
Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.
how to merge object repositories?
In automation testing, while doing descriptive programing; how will u get the properties of the objects in what format, what type of a document, and by whom? Pls explain in detail. Thanks a lot
what is the mail use of frame work(with detail). architecture for keyword driven frame work
What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example.
What are the views available in quicktest professional?
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
Is it possible to switch between recording modes during a test creation?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Plz Explain AUTOMATION REFERENCE MODEL?