Give me some scripts for 1). checking webpage links
(counting links,opening web pages,counting child elements)
Answer Posted / lkiran
Hi Rnashok,
I used similar function in my script.But getting syntax
error when I try to run the script.Let me know how to solve
it.Herez my function.....
Function eTimeSummary(hours)
rowCount = Browser("XYZ").Page("XYZ_8").WebTable
("Employee #").RowCount
cellData = Browser("XYZ").Page("XYZ_8").WebTable
("Employee #").GetCellData(1,1)
If cellData <> "Commission Information is not available
for this time period" Then
For i = 2 to 2'rowCount
hoursTotal = Browser("XYZ").Page
("XYZ_8").WebTable("Employee #").GetCellData(rowCount, 6)
If Trim(hours)= Trim(hoursTotal) Then
Reporter.ReportEvent 0, "Verifying
AssociateSummaryForODhours and eTimeSummaryhours
Total", "Summary Total Passed."
'msgbox "testpassed"
Else
Reporter.ReportEvent 1, "Verifying
AssociateSummaryForODhours and eTimeSummaryhours
Total", "Summary Total Failed."
End If
Next
End If
Browser("XYZ").Back
Browser("XYZ").Page("XYZ_4").Sync
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is keyword view in qtp?
How many add-ins comes by default with qtp?
What is the basic concept of qtp?
How you can replace string in qtp?
Plz Explain AUTOMATION REFERENCE MODEL?
If I give some thousand tests to execute in two days what do you do?
breef description of batch testing ?
How to do call a output parameter from one action to another action??/
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
Dis advantages of XML checkpoint ?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Can we create user defined functions in qtp?
What is Distributed testing? How does UFT support it?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?