Page tree
Skip to end of metadata
Go to start of metadata

This session demonstrates two different ways to specify the location of an Element so that some action can be executed on it:

  1. Example 1: "SwipeWhileNotFound" command - Swipe to search for an element or text.
  2. Example 2: "ElementListSelect" command - Select an element in a list (after first making the element visible).

For this example we will use the eri-Bank application. We will go to the payment page, click on the countries list, and choose United-Kingdom (which is the not visible unless you scroll down)


Step 1: We will do a native record on the eri-Bank application as explained in session 1 - "Getting Started iOS/Android"

Step 2: Change the last command to "Click" on 'Make Payment' Object (instead of "VerifyElement").

  1. Click on the relevant step
  2. Expand the commands drop-down list
  3. Choose the wanted command (in this case - 'Click')

    This is the new script:

Step 3: Add a step - Click on 'Select' button (to open the countries list) 

Note: We will do a dynamic NATIVE extraction
  1. Click on the "Object Spy" icon button.
  2. Click on the 'Select' button.
  3. Left-click to mark the property and then right-click on one of the Object's properties to Add a command > choose 'Click'.

    4. Close the Object Spy.
    5.Right click the new click command created in step 3 and click 'Run selected steps'.

    The Countries list will now appear on the device:

Now we are ready to add the command that will find the country we want and then click on it - the country will be United-Kingdom'

  1. "SeeTestAutomation- SwipeWhileNotFound" command
  2. "SeeTestAutomation- ElementListSelect" command
  • No labels