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 |
What is action split and the purpose of using this in qtp?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
what is the difference between Table checkpoint and Database checkpoint in QTP
Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.
What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0
Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?
Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..
Is it mandatory to know abt regular expression in descriptive programming
Can anybody give the script of below things. 1. Add sheet 2. Adding columns 3. Set the values in that columns(In the rows) 4. Close the sheet 5. How can we create 3 sheets in one Excel sheet??
Is there a function to find the number of occurrences of sub strings within a string?
want to learn real time automation project(QTP)?
please any one can explain the keyword driven framework. with gmail example.