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

how to check whether link is disabled in QTP??

5629


How to make sure that items in a wintree are sorted al?

2355


what is the use of QCUtil? explain with one example?

6318


write any ttest cases using check points and parameterization

1815


how to increasing the numbers in a given text box please write a vb script

1700






i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1417


when we use filter funtiom invb script(QTP)

2300


what is resorceallocation

1772


When are redim statement and preserve keyword used in the vbscript language?

591


Explain about arrays in vb script?

602


Explain the .wsf files?

531


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1045


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1456


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2057


Explain few date functions in vbscript?

612