I am trying to click on acell in a table but its not recognizing the table says not in the repository when I use this code .
Browser("Caseviewweb").Page("CaseView Web | Search").WebTable("Search Results").Click 2,2
so I recorded the script and when I clicked on one of the cell in the table its capturing as webelement but not based on row and cell value. But my script has dynamic values in the table how do I write the script so that it clicks on the row 2 column 2 evertime .
IIRC, the .Click methods takes coordinates (could be relative to the positioning of the webtable on the page) as arguments. If you really want to click on that particular cell, you might have to find the webelement as a chilobject if it has a unique identifier like a tag, and then click on it.
set oChild = Browser("Caseviewweb").Page("CaseView Web | Search").WebTable("Search Results").ChildItem(2, 2, "WebElement", 0)
oChild .Click 'click on the webelement at the 2nd row and 2nd column. [img]/images/graemlins/confused.gif[/img]