I have the html in my Page:
I have the content defined as:
child_criteria(wait: true) { $("div",class:"childSelectInIndex").find("ul",class:"oldSelectIndex") }
trying to select only the number of visible element those do not have style="dsplay:none"
with :
def displayedchild_count = child_criteria.find("li",class:"targetChildAgeForm").not("li",class:"targetChildAgeForm",style:"display:none;").size()
But println displayedchild_count
always show the size as 4.
How I can select the size of visible elements?