I have to automate webpage. If I click one hyperlink2 it
will take 2 hrs to open. How to automate hyperlink2?
Answers were Sorted based on User's Feedback
Answer / kumar
If we use Wait statement it has to wait 2 hrs.
We can put synchronization point here using QTP.
| Is This Answer Correct ? | 5 Yes | 2 No |
if it is taking that much time...i suggest you not automate
that. if you still wants to automate u can use wait
statement to wait for that much time.
else use loop to wait until that page exist.
for example:
i = 0
do while i <=10
If Browser("XXX").Page("XXXX").Exist Then
Exit Do
Else
Wait 40
End If
i = i+1
Loop
If any queries mail me at :
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / bharat
Hi Nanda,
U r using loop to solve this sync prob.But i don't think
this will solve this prob as loop will not take so much time
to complete.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravi singh
First not to automate but if necessary, use Browser(" ").sync after the line where hyperlink2 is clicked.
| Is This Answer Correct ? | 0 Yes | 0 No |
how do you remove object repository at runtime and load object repository and verify it
Give me exact application where we should use low level recording?
how to tell about testing a website in interview using qtp?? what r the points to be covered mainly?
How to analyzing the checpoint results?
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya
How to handle Run-time errors?
write a script to verify the image path(src property) of the images which are in web pages.
What are advantages of test automation?
I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail. Could you please any assist in this?
Explain runtime dynamic settings?
Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.
what is the difference between Automation object model(AOM) and test object model(TOM)