tawilli5
7 years agoNew Contributor
Exploring the Dom - Finding ChildNodes (Discussion Two)
I am unable to retrieve any child elements within a table. When using the following code, I am able to retrieve the entire row with no issue:
1. var xpath = "//tr/td/div[text() = 'Ryan STIG Reg...
- 7 years ago
TestComplete identifes objects differently. It reads the DOM to do so but then identifies objects based pon properties of the object. If parentElement is not recognized as a table, it won't have a "cells" property according to TestComplete so even the "cells" call won't work.
If you're going to have the greatest success with TEstComplete, I'd move away from using XPath as your prirmary means of identiification. Look up the OBject browser and NameMApping in the documentation and start working from there in identifying objects.