To get data from table which method will be used in QTP
Answer Posted / nag
to get whole data in web table using loops
run exactly below script(explorer should be default browser
) let me know if i am wrong
Systemutil.Run"https://www.iciciprulife.com/ipru/Current_UnitValue.jsp"
Browser("Browser").Page("ICICI").WebList("navType").Select
"Golden Years"
x=Browser("Browser").Page("ICICI").WebTable("Fund
Name").RowCount
For i=1 to x
y=Browser("Browser").Page("ICICI").WebTable("FundName").ColumnCount(i)
Next
For i=1 to x
For j=1 to y
n=Browser("Browser").Page("ICICI").WebTable("Fund
Name").GetCellData(i,j)
print n
Next
Next
print "no of rows"" "& x
print "no of cplumns"" "&y
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the scope of a constant declared using public?
What is select case statement?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
Explain about constants in vb script?
Mention what is variant in vbscript?
Which date function is used in the vbscript language to find the difference between the 2 dates?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
What is the use of option explicit in vbscript?
What is difference between vbscript and vba?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
what is the use of QCUtil? explain with one example?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Which object provide information about a single runtime error in a vbscript?
Explain about tristate constants in vbscript?