0% found this document useful (0 votes)
26 views3 pages

Table

Uploaded by

BalaSai Varma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Table

Uploaded by

BalaSai Varma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

WebTable: A table containing a variable number of rows and columns. WebTable Methods: 1.

ChildObjects: Returns the collection of child objects contained within the object. Ex: Set webobj=[Link]() webobj("micclass").value="WebElement" webobj("html tag").value="TD" Set webobject=browser("Browser").Page("Page").ChildObjects(webobj) webcount=[Link] For i=0 to webcount-1 webelmt=webobject(i).Getroproperty("innertext") msgbox webelmt Next Set oDesc = [Link]() oDesc("micclass").Value = "WebEdit"

'Retrieve all WebEdit objects from this page. Set EditCollection = Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").ChildObjects(oDesc) NumberOfEdits = [Link] Set oDesc = [Link]() oDesc("micclass").Value = "WebEdit"

'Retrieve all WebEdit objects from this page. Set EditCollection = Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").ChildObjects(oDesc) NumberOfEdits = [Link] Set oDesc = [Link]() oDesc("micclass").Value = "WebEdit"

'Retrieve all WebEdit objects from this page. Set EditCollection = Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").ChildObjects(oDesc) NumberOfEdits = [Link] Set oDesc = [Link]() oDesc("micclass").Value = "WebEdit"

'Retrieve all WebEdit objects from this page. Set EditCollection = Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").ChildObjects(oDesc) NumberOfEdits = [Link] [Link] Set chd=Browser("Browser").Page("Page").WebTable("Cell 1") [Link] 2,2,"WebElement",0 [Link]: Returns the number of objects of a specific type in a cell. msgbox [Link](1,1,"WebElement") [Link]: Returns the number of rows in the webTable. rwcount=Browser("Browser").Page("Page").WebTable("Cell 1").RowCount [Link]: Returns the number of column in the webTable. colmncoun=Browser("Browser").Page("Page").WebTable("Cell 1").ColumnCount(1) [Link]: Retrieves the contents of the specified cell from the table. cellvalue= Browser("Browser").Page("Page").WebTable("Cell 1").GetCellData(2,2) [Link] : Returns the number of the first row found that contains a cell with the specified text. rowvalue=Browser("Browser").Page("Page").WebTable("Cell 1").GetRowWithCellText("Cell 8")

[Link]: Returns the current value of the specified identification property from the object in the application. runvalue=Browser("Browser").Page("Page").WebTable("Cell 1").GetROProperty("innertext") [Link]: returns the value from the test object's description testvalue=Browser("Browser").Page("Page").WebTable("Cell 1").GetToproperty("html tag")

[Link] : Sets the value of the specified identification property in the test object description. Browser("Browser").Page("Page").WebElement("WebTable").SetTOProperty "html tag","TD"

You might also like