Forum Discussion
Philip_Baird
12 years agoCommunity Hero
Hi Veronica, from your post I can see two potential problems
1. You indicate you are using VBScript and the example is JScript, the only way to utilise JScript in a VBScript project is to contain the JScript in a Script Extension
2. The code snippet appears to reference jQuery to find elements which is not available in Test Complete
In the past when dealing with dynamic ids in Browser pages I have used XPath evaluation methods of the Page Object, such as:
EvaluateXPath
FindChildByXPath
QuerySelector
QuerySelectorAll
Regards,
Phil Baird
1. You indicate you are using VBScript and the example is JScript, the only way to utilise JScript in a VBScript project is to contain the JScript in a Script Extension
2. The code snippet appears to reference jQuery to find elements which is not available in Test Complete
In the past when dealing with dynamic ids in Browser pages I have used XPath evaluation methods of the Page Object, such as:
EvaluateXPath
FindChildByXPath
QuerySelector
QuerySelectorAll
Regards,
Phil Baird