Forum Discussion
Are your UI Objects dynamically drawn? And you are using XPath to locate the objects?
- pkudrys2 months agoContributor
Hi, I'm not sure about dynamically drawn objects (the UI is Angular-based). But yes, I'm locating elements via xpaths and css. As mentioned, the test works fine in normal browser. And partially, it works also in headless mode. For example login works fine and even the property checkpoint for mapped element works fine...
It's just that the mapped element returns 0 children elements.
- rraghvani2 months agoChampion Level 3
Have a read through https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/dynamic-pages.html . Are you able to find out if those objects are dynamically drawn?
I'm having a feeling those objects are not being shown, until something has been clicked on or the page is loaded.
- pkudrys2 months agoContributor
Thanks for the link. It's most probably not that case. The buttons are available directly after login to the app. I just tried to map the problematic button and of course, the button is found and happily clicked :) So the only issue is, why the parent mapped element returns 0 children?
Related Content
- 5 years ago
- 4 years ago
- 10 months ago
- 11 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago