Forum Discussion
Kitt
2 years agoRegular Contributor
I think you need to remove all of the ( ) from your xpath/css references. So instead of FindElement("(//div/input)[3]") you could try FindElement("//div/input/div[3]"). See the documentation on finding elements [here].
I've never seen the approach of using parenthesis at the beginning of your xpath so I'm curious what you are using to obtain your object references? You should be able to use the Object Spy tool (or Object Browser) inside TestComplete to see if the element you are trying to find matches what is in your code. The SelectorsHub web extension is a handy tool that can help with testing xpath references better than TestComplete IMO.
Related Content
- 3 years ago
- 4 years ago
Recent Discussions
- 29 minutes ago
- 5 hours ago
- 7 hours ago