Counting elements in shadow-root
Counting elements in shadow-root
Inside shadow-root elements can’t be counted using sui:get-count.
The following workaround can be used: (elmToBeCounted
is defined with an index called elmIndex
)
<property name="foundElms" value="0"/>
<loop start="1" end="25" indexVarName="i" till="${noMoreFound?has_content}">
<sui:element-state method="clickable" name="elmToBeCountedState" pageId="elmToBeCounted" elmIndex="${i}"/>
<condition value="${elmToBeCountedState}">
<property name="foundElms" value="${foundElms?number + 1}"/>
<else>
<property name="noMoreFound" value="yes"/>
</else>
</condition>
</loop>
, multiple selections available,
Related content
UI Shadow Root (sui:shadow-root)
UI Shadow Root (sui:shadow-root)
More like this
UI Get Count (sui:get-count)
UI Get Count (sui:get-count)
More like this
UI Wait For Count (sui:wait-for-count)
UI Wait For Count (sui:wait-for-count)
More like this
UI Element State (sui:element-state)
UI Element State (sui:element-state)
More like this
UI Get Text (sui:get-text)
UI Get Text (sui:get-text)
More like this
UI Wait for (sui:wait-for)
UI Wait for (sui:wait-for)
More like this