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


Please Help Members By Posting Answers For Below Questions

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

537


Explain about filter expression?

569


Description.Create

2162


How will you format a number in percetage format in vbscript?

593


Mention what is the technology used by vb script?

523






Which date function is used in the vbscript language to find the difference between the 2 dates?

595


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

582


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1541


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2508


Which operator can be used to change the value of the operand or change the state of the condition?

581


Explain sga memory structures?

581


What is the difference between function and procedure?

579


How will you convert a string to lower case string using vbscript?

561


Explain what is loose binding? Why is it not a good practice to use it?

583


How will you convert a given number to long in vbscript?

494