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
- ManRam20206 years agoNew Contributor
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
- 3 months ago
- 4 years ago
Recent Discussions
- 22 days ago