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 are class events?
Mention what is variant in vbscript?
What is the purpose of regexp object in vbscript?
can anyone tell me the procedure of interview held in applabs
How to add actions in driver script to run those actions in QTP?
Description.Create
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
What is loose binding? Why is it not a good practice to use it?
Mention the rules for using option explicit statement?
Is VB Script Case sensitive or Case insensitive?
how to set one column as primary key in QTP and fetch values accordingly
what is the differance between BYVAL,BYREF?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Mention what if you do not specify anything when you call a procedure?