accept alert after clicking on button “element_name” – SoliteraTA

SoliteraTA

All Step Definition

accept alert after clicking on button “element_name”

accept alert after clicking on button “element_name”

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

accept alert after clicking on button “element_name”

Keyword

Given, When, And, Then

Description

Will click on the button and accept the alert

Declaration
				
					Then accept alert after clicking on button "showAlertBtn"
				
			
				
					<elements>
  <element>
    <name>showAlertBtn</name>
    <type>XPATH</type>
    <value>//button[contains(text(),'Show Alert')]</value>
  </element>
</elements>
				
			
				
					NILL
				
			
				
					NILL
				
			
Browser Support
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 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