find/select nearest other element inside the loop?
-
hi,
is it possible to access siblings and parents of current element inside the loop?
I would like to find nearest <span> tag after current element in loop[[FOR_EACH_XPATH]]>AT>[[CYCLE_INDEX]] somehow extend this line?
thanks for help
-
I was able to do what I want by adding "Execute javascript on element" to loop and then self.parentElement.parentElement.querySelector('span').textContent
But I am still interested if something similar can be done with XPATH or CSS
edit: XPATH syntax is something like this
[[FOR_EACH_CSS]] >AT>[[CYCLE_INDEX]] >XPATH> ../following-sibling::td[1]now last thing I am missing is how to do it with CSS