Forum Discussion
leonc
12 years agoNew Contributor
Hi All,
More specifically, I am trying to find a cell within the webpage. The cell is always there and it's properties are static, but due to the nature of the webpage was constructed with a lot of elements in the page, TC somehow is having trouble locating the object. I added a 2 minute WaitChild method to the parent object but no improvements. Sometimes TC can find the object but other times not, and the code are exactly the same.
It looks like TC (10.20.953.7) is having trouble finding the object consistently. Is there a way to speed up updating TC's object tree?
...
var browser = Sys.Browser("iexplore").Page( lcuURL + "Main.htm");
var table = browser.Frame("content_frame").Panel("gbox_PresetsGrid").Panel("gview_PresetsGrid").Panel(2).Panel(0).Table("PresetsGrid");
var cellbox = table.Cell(2, 8); <-- Sometimes this object can be found, sometimes not. I am unsure why.
Thanks.
More specifically, I am trying to find a cell within the webpage. The cell is always there and it's properties are static, but due to the nature of the webpage was constructed with a lot of elements in the page, TC somehow is having trouble locating the object. I added a 2 minute WaitChild method to the parent object but no improvements. Sometimes TC can find the object but other times not, and the code are exactly the same.
It looks like TC (10.20.953.7) is having trouble finding the object consistently. Is there a way to speed up updating TC's object tree?
...
var browser = Sys.Browser("iexplore").Page( lcuURL + "Main.htm");
var table = browser.Frame("content_frame").Panel("gbox_PresetsGrid").Panel("gview_PresetsGrid").Panel(2).Panel(0).Table("PresetsGrid");
var cellbox = table.Cell(2, 8); <-- Sometimes this object can be found, sometimes not. I am unsure why.
Thanks.