check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window – SoliteraTA

SoliteraTA

Desktop step-Definition

check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window

check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window

Keyword

Given, When, And, Then

Description

Check for the presence of the first element, and if not found, click on the second element in the desktop window.

Declaration
				
					When check for the first element "UseremailField", if not found then click on second element "InputField" in the desktop window
				
			
				
					"<elements>
<element>
  <name>InputField</name>
  <type>ID</type>
  <value>Input</value>
</element>
</elements>"
				
			
				
					NILL
				
			
				
					NILL
				
			
Remarks
  1. This step checks for the first element with the name “element_name” in the desktop window. If not found, it clicks on the second element with the same name.
Restriction
  1. There should be at least two elements with the name “element_name” in the desktop window. The elements should be accessible and interactable.

Solitera may collect certain information by automated means, such as cookies and web beacons, when a user visits our website. A “cookie” is a small piece of data that a website can send to your browser, which may then be stored on your system. learn more