if element "element_name" is not present on UI then click on element "element_name" else do nothing – SoliteraTA

SoliteraTA

Desktop step-Definition

if element “element_name” is not present on UI then click on element “element_name” else do nothing

if element “element_name” is not present on UI then click on element “element_name” else do nothing

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

if element “element_name” is not present on UI then click on element “element_name” else do nothing

Keyword

Given, When, And, Then

Description

If first element is not present on UI, a click will be performed on second element

Declaration
				
					Then if element "printedContent" is not present on UI then click on element "submitBtn" else do nothing
				
			
				
					<elements>
  <element>
    <name>printedContent</name>
    <type>XPATH</type>
    <value>//div[@id='printedContent']/p</value>
  </element>
  <element>
    <name>submitBtn</name>
    <type>XPATH</type>
    <value>//button[text()='Submit']</value>
  </element>
</elements>
				
			
				
					NILL
				
			
				
					NILL
				
			
Remarks
  1. The “String Value” that is used through test data file should be in angular brackets
  2. We can use any variable name
Restriction
  1. Element and application file should be in xml format.

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

Choose your Operating System