SEMrush

Easy Ways to Find Web Elements in a Web table, in Selenium Webdriver

How to find, where an object is located in a web table ?

To get The Row number of the object use the below mentioned syntax
  • WebElement(properties).GetRow()
To fetch the Column we can use GetColumn
  • WebElement(properties).GetColumn()






Set the Element , and then Get the Row where it is located in the web table

Set element = Browser("creationtime:=0").WebElement("innertext:=Amy", "index:=0")
element.GetRow()
element.GetColumn()

MsgBox Browser("creationtime:=0").WebCheckBox("name:=Travelling", "index:=1").GetRow
MsgBox Browser("creationtime:=0").WebCheckBox("name:=Travelling", "index:=1").GetColumn



< Previous                                                  Next >







Links to useful posts: