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
whow much strong on VB and C?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
How many types of parameters are available in quicktest professional?
What is the basic concept of quicktest professional?
What test cases can you automate using QTP?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
What are the automation metrice in your project?
What are the differences between quicktest professional (qtp) and winrunner?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
what is test scheduleling?
What will be happen if i load object repository at run time, but it has already associated.
What are the different types of recording modes in qtp? Which will be used when?
Can any one send me the QTP Basic Coding Samples?
How to attach a file to TD?