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 replace junk code recorded by QTP with a mall function.

1853


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

2257


Mention what is the main difference between function and sub-procedure?

748


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2510


How will you get the smallest subscript of an array in vbscript?

1091


Which operator can be used to check if two numbers are equal or not in vbscript?

876


write any ttest cases using check points and parameterization

2026


When does ‘on click of button’ event gets triggered in the vbscript language?

757


What is vbscript language used for and which earlier language is it modeled upon?

741


Mention what if you do not specify anything when you call a procedure?

757


Which constant is used for print and display functions and works as same as pressing enter key?

762


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

2070


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1604


Explain vbscript in detail?

813


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3136