Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The following program appears :

...

Info

On macOS, interactions may be impossible with uiautomatorviewer.

If it is the case, do the following steps:

3. Use UIAutomatorviewer

When UIAutomatorviewer UIAutomatorViewer is opened, you can

  • Plug your usb on your smartphone

  • Click on button “Device screenshot”

  • A screen capture and a dump of view hierarchy appears on the screen

...

  • In this case, the tab “Actu” have the field ‘text’ set with ‘Actu’. So in GDSL we can search the text Actu to find this tab (if there is no other element with the same text in the screen).

  • Each element of a view can be retrieve by field ‘text’, ‘resource-id’, ‘class’ or ‘content-desc’. GDSL commands are made to find an element by searching on this field

    • clickById,exampleid : click on an element which have exampleid in resource-id field

    • waitUntilText,Actu : Wait an element which have ‘Actu’ in text field

...

On macOS, interactions may be impossible with uiautomatorviewer.

If it is the case, do the following steps:

...

Download swt here: https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.20-202106111600/swt-4.20-cocoa-macosx-x86_64.zip

...

Extract the folder and open it

...

Rename swt.jar file to swt2.jar

...

Copy the file in the following folder: $HOME/Library/Android/sdk/tools/lib/x86_64

...