Forum Discussion
Hi ManRam2020,
The document object does not have the FindChildByXpath() method, and it cannot be added to it anyhow.
Please try using the evaluate() method instead: https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate
Thank you so much for the response on this , Natalie, i tried using evaluate() method per your recommendation, it throws errors saying two arguments needs to be passed.
TypeError: Failed to execute 'evaluate' on 'Document': 2 arguments required, but only 1 present.Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 arguments required, but only 1 present.Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 arguments required, but only 1 present.Uncaught
Also, our UI is defaulted to go through IE, in the link shared, it says, evaluate method is not supported for IE.
Am i missing something ? I am pretty new to API automation.
Thanks in advance.
Related Content
- 7 years ago
- 2 months ago
- 5 months ago
Recent Discussions
- 4 hours ago
- 5 hours ago
- 6 hours ago
- 6 hours ago