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
Mobile Step Definition
- Alert Events
- Application Events
- I Open the ios native Application with āapplicationVar_nameā configuration
- I Open the android native Application with āapplicationVar_nameā configuration
- Uninstall App from Mobile Device ā
ā - Install given Application in Mobile Device with āapplicationVar_nameā configuration
- go back to mobile screen
- invoke Application in Mobile Device āapplicationVar_nameā
- go forward to mobile screen
- close the android application with āapplicationVar_nameā configurations
- close the opened application in ios mobile
- Browser Events
- Checkbox & Drop-Down Events
- Click & Touch Events
- click on element āelement_nameā with x value
and y value in mobile screen - swipe ā
ā mobile screen - double click on coordinates with x value ā
ā and y value ā ā in mobile screen - click on coordinates with x value ā
ā and y value ā ā in mobile screen - release the element āelement_nameā in mobile screen
- hold the element āelement_nameā in mobile screen
- tap and hold element āelement_nameā for
seconds in mobile screen - tap on element āelement_nameā in mobile screen
- double tap on element āelement_nameā in mobile screen
- Click on mobile button āelement_nameā
- drag element āelement_nameā and drop to āelement_nameā element in mobile screen
- click and hold using ā
ā xCords and ā ā yCords in mobile screen - swipe ā
ā mobile screen - move and release using ā
ā xCords and ā ā yCords in mobile screen - drag mobile element āelement_nameā into another mobile element āelement_nameā using image identification
- drag from co-ords ā
ā x-value & ā ā y-value and drop to ā ā x-value & ā ā y-value in mobile screen - tap on mobile element āelement_nameā using image identification
- long tap on mobile element āelement_nameā using image identification
- double tap on mobile element āelement_nameā using image identification
- swipe the element āelement_nameā in ā
ā direction in mobile screen - click if the element āelement_nameāā exists
- click on element āelement_nameā with x value
- Input Events
- press key ā
ā in mobile screen - type text
into non-input location āelement_nameā in mobile screen - press ā
ā key on āelement_nameā element in mobile screen - type text
into input location āelement_nameā in mobile screen - enter text ā
ā in mobile input field āelement_nameā - enter value āelement_nameā for radioButton in mobile screen
- enter value
for dropdown āelement_nameā in mobile screen
- press key ā
- Other Events
- hide mobile keyboard
- unlock mobile device
- lock mobile device
- change mobile app default timeout to ā
ā seconds - wait ā
ā seconds for mobile element - rotate mobile device to ā
ā position - read otp from the message āelement_nameā and store as ā
ā in mobile screen - read text from the field āelement_nameā and store as ā
ā in mobile screen - open notification bar in mobile
- generate random text of length ā
ā and store as ā ā for mobile input fieldā - generate random number of length ā
ā and store as ā ā for mobile input field - combine ā
ā testdata with ā ā testdata and save it as ā ā in mobileā - save value ā
ā to clipboard in mobile - paste value from clipboard to element āelement_nameā in mobile
- UI Verification
- verify mobile device is locked
- verify partial text
does not exist into non-input field āelement_nameā in mobile screen - verify partial text
is displayed into non-input field āelement_nameā in mobile screen - verify partial text
is displayed on input field āelement_nameā in mobile screen - verify āelement_nameā element is not displayed in mobile screen
- verify app ā
ā is installed on the mobile device - verify ātestdata_nameā text at āelement_nameā input location in mobile screen
- verify āelement_nameā element is displayed in mobile screen
- verify mobile element āāelement_nameāā is not present on the screen using image identification
- verify ā
ā text at āelement_nameā non-input location in mobile screen - verify partial text ā
ā does not exist on input field āelement_nameā in mobile screen - verify mobile element āelement_nameā is present on the screen using image identification
click if the element “element_name”” exists
click if the element “element_name”” exists
click if the element “element_name”” exists
Keyword
Given, When, And, Then
Description
Will click if the element exists in mobile screen
Declaration
- Code
- Element
- Application
- Test Data
Then click if the element "Delhi_In_List" exists
Delhi_In_List
XPATH
//android.widget.TextView[@text="Delhi"]
NILL
NILL
Remarks
- The “element_name” that is used through element data file should be in double quotes.
Restriction
- “element_name” should be corresponds to a valid element in the application.
- Last updated on: April 9, 2024
Table of contents