Solved
Forum Discussion
baxatob
Community Hero
Why do you want to iterate through the child elements, if your target element has an unique id property?
coffee
8 years agoContributor
No, it doesn't have unique id. Need to find the parent and go down to its grandchild.
- baxatob8 years agoCommunity Hero
- coffee8 years agoContributor
Hi baxatob ,
That one is dynamically created , so not static.
Also I have other cases where there is completely no ID.
I tried that code in Chrome and it works perfectly fine, so Javascript-syntax-wise should be all right. Not sure why TC doesn't like it.
Thank You.
- baxatob8 years agoCommunity Hero
Try to iterate using:
...querySelector(CSS_selector).children.item(index). ... .textContent
Related Content
- 4 years agoSuperTester
- 4 years agoSuperTester
Recent Discussions
- 2 days agoGane195