CountWebElementsInContainer |
Top Previous Next |
×V4.1Ø
Syntax - CountWebElementsInContainer <Variable Name> <Partial Element ID> <Element Identifier> Where: <Variable Name> is the user defined name that is assigned to the variable. <Partial Element Identifier> is a literal string or a variable that contains a string value. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command is used to count the number of elements that are embedded within another element and that have a particular attribute as described by the <Partial Element ID>. The containing element is identified by the <Element ID> and the elements being counted should meet the specifications in the <Partial Element ID> parameter. The <Partial Element ID> can include wildcards in the attribute section.
Soarian SmartUI: Yes Chrome: No
Sample: The following line retrieves the number of images that have a source image like *exc18x18.gif and are embedded in the table identified by the Element String. The resulting count is stored in a variable named ImageCount. CountWebElementsInContainer ImageCount "image,src-*exc18x18.gif,Index=1" "Dialog=Main:wellFrame:Table,ID=ctlcmpDemoLeftControlGroup,INDEX=1"
See Also:
|