click on button “element_name” and verify text in alert box equal to “<testdata_name>” – SoliteraTA

SoliteraTA

All Step Definition

click on button “element_name” and verify text in alert box equal to “<testdata_name>”

click on button “element_name” and verify text in alert box equal to “<testdata_name>”

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

click on button “element_name” and verify text in alert box equal to “<testdata_name>”

Keyword

Given, When, And, Then

Description

Will click on button and verify text of alert window

Declaration
				
					When click on element "showAlertBtn" and verify text in alert box equal to "This is a simple alert"
				
			
				
					"<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 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