# Count Elements

Get the number of similar elements on a web page by a specified selector.

<table data-header-hidden><thead><tr><th width="228" valign="top"></th><th width="331" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] The identifier of the browser window and the web page element, common for all similar elements being searched.</td></tr><tr><td valign="top">Result</td><td valign="top">[Number] The number of elements.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the identifier of the process and the browser tab used by this block.</p><p>If the property is left empty, or if the "Process ID" variable was not previously assigned at the time of opening the browser, the application and browser tab will be determined from the content of the corresponding selector line.</p><p>The process ID can be obtained, for example, using the Start IE, Start Chrome, or Join Browser blocks.</p></td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] The maximum time to count elements in seconds.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>
