Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The separator character for iOS is the semicolon “,”.

To find the package names to write after “applicationStart”: https://mrvirk.com/how-to-find-app-bundle-id-ios.html.

For more information about commands using predicates, which provides a general means of specifying queries in Cocoa, see https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html.

Exemple testreference.testgb :

measureStart,LAUNCHYT
applicationStart,com.google.ios.youtube
pause,5000
measureStop
measureStart,PAUSEYT
pause,30000
measureStop

Application

Command

Parameters

Description

applicationStart

String appPackageName: the application package name.

Starts an application from its package name.

applicationKill

String appPackageName: the application package name.

Forces an application to stop from its package name.

Click

Command

Parameters

Description

click

Clicks on the last element stored (after the Find commands.

clickByText

String selector: the text of the element to click on. This is case insensitive.

Clicks on the element which contains the given text selector.

clickByTextExact

String selector: the exact text of the element to click on. This is case sensitive.

Clicks on the element which contains the exact given text selector.

clickByTextEndsWith

String selector: the end of the text of the element to click on.

Clicks on the element which finishes with the given text selector.

clickByTextBeginsWith

String selector: the beginning of the text of the element to click on.

Clicks on the element which starts with the given text selector.

clickById

String id: the identification of the element to click on.

Clicks on the element which contains the given identification.

clickByPredicate

String selector: the predicate of the element to click on.

Clicks on the element which matches the given predicate.

clickByXY

int x: the abscissa coordinates.

int y: the ordinate coordinates.

Clicks on the element located at the given coordinates.

Device

Command

Parameters

Description

pressHome

Presses the home button.

pause

long timeMillis : the time in millisecond.

Waits the amount of time in millisecond passed as argument.

Dump

Command

Parameters

Description

dump

String path: the path where the dump file is saved.

Takes a dump of the current state of the device.

Find

Command

Parameters

Description

findElementByName

String selector: the text of the element to find. This is case insensitive.

Finds the element which contains the given text selector.

findElementByExactName

String selector: the exact text of the element to find. This is case sensitive.

Finds on the element which contains the exact given text selector.

findElementByPartialName

String selector: a part of the text of the element to find.

Finds the element which partially contains the given text selector.

findElementByPredicate

String selector: the predicate of the element to find.

Finds the element which matches the given predicate.

findElementEndingWith

String selector: the end of the text of the element to find.

Finds the element which finishes with the given text selector.

findElementBeginningWith

String selector: the beginning of the text of the element to find.

Finds on the element which starts with the given text selector.

findChildElement

String parent: the name of the parent element.

String elementName: the name of the child element.

Finds a child element with the name elementName from a parent.

Probe

Command

Parameters

Description

measureStart

Starts a measure.

measureStop

String stepName : the name of the measure.

Stops the current measure identified by the given name.

Screen

Command

Parameters

Description

takeScreenshot

String path: the path where the screenshot is saved.

Takes a screenshot of the current screen.

takeScreenshotByType

String elementId: the identification of the element to take in screenshot.

String path: the path where the screenshot is saved.

Takes a screenshot of the element which contains the given identification.

Scroll

Command

Parameters

Description

scrollDown

Scrolls down the screen.

scrollUp

Scrolls up the screen.

swipe

int percStartY: the percentage of the ordinate coordinates of the device screen where the swipe begins.

int percEndY: the percentage of the ordinate coordinates of the device screen where the swipe ends.

int percStartX: the percentage of the abscissa coordinates of the device screen where the swipe begins.

int percEndX: the percentage of the abscissa coordinates of the device screen where the swipe ends.

Swipes the screen.

SetText

Command

Parameters

Description

setTextByText

String textToSet: the text to set.

String textSelector: the text selector.

Pastes the given text into the element which contains the given text selector.

setTextById

String textToSet: the text to set.

String idSelector: the id selector.

Pastes the given text into the element which contains the given id selector.

tapText

String text: the text to enter.

Enters the given text in the current selected field clicking on the keyboard keys for each character.

WaitObject

Command

Parameters

Description

waitUntilText

String selector: the selector, here the text to be visible on screen. This is case insensitive.

Waits until element which contains the text selector is visible on screen. The timeout is equal to 60 seconds.

waitUntilTextExact

String selector: the selector, here the exact text value. This is case sensitive.

Waits until element with exact text selector is visible on screen. The timeout is equal to 60 seconds.

waitUntilTextBeginsWith

String selector: the selector, here the beginning of the text to be visible on screen.

Waits until element which starts with the text selector is visible on screen. The timeout is equal to 60 seconds.

waitUntilGoneTextExact

String selector: the selector, here the exact text value. This is case sensitive.

Waits until element with exact text selector disappears from the screen. The timeout is equal to 60 seconds.

waitUntilPredicate

String selector: the selector, here the predicate.

Waits until element which matches the predicate. The timeout is equal to 60 seconds.

  • No labels