Mostly Used Commands in Mobile App Automation
Worksoft SaaS provides you with a plethora of simple powerful commands that you can use to develop easy to follow and maintain automation. When you intend to automate hybrid/native mobile applications, you may need to use several commands in addition to the commands native mobile app commands.
In this table below, you can see a listing of mostly used commands (which is a combination of commands that are specific to native mobile apps and the rest are common across different platforms) in the mobile app automation grouped by the category/sub-category, covering different web elements along with a high-level purpose and example articles of those commands.
Command Category | Command | Element/Control | Description | Example Articles |
---|---|---|---|---|
UI Automation - Interrogation | assertEditable, verifyEditable | Input Fields | Used to confirm if the input field is in ready state to enter a value | |
UI Automation - Interrogation | assertVisible, verifyVisible | All Elements | Used to confirm the visibility of an element on screen | How do I validate the element is visible? |
Native/Hybrid Apps - Manipulation | tap | All Elements | Used to tap on required elements | How do I tap on elements in mobile apps? |
Native/Hybrid Apps - Manipulation | swipe | screen | Used to swipe across the screen | How do I swipe based on the coordinates in mobile apps? |
Native/Hybrid Apps - Manipulation | hideKeyboard | Screen | Hides/Closes the keyboard on screen | How do I hide keyboard? |
UI Automation - Manipulation | storeEval | SaaS | Used to perform a logical operation or execute a javascript function and store its result. | How do I use storeEval to use javascript methods? |
UI Automation - Manipulation | check, uncheck | Radio Buttons / Checkboxes | Used to select/deselect an option from radio options or checkboxes | How do I select/check a checkbox?, How do I unselect/uncheck a checkbox? |
UI Automation - Manipulation | type | Input Fields | Used to enter text for an input field | How do I enter text in an input field? |
UI Automation - Manipulation | storeVisible | All Elements | Used to store the status of visibility of an element. True if visible, false if not. | How do I read the visibility of an element? |
UI Automation - Synchronization | setTimeout | SaaS | Used to change execution time of an instruction. SaaS level default is 120 seconds. |