ElementSwipe (Zone, Element, Index, Direction, Offset, Time)
|
|
|
|
|
|
|
Swipe the screen in a given direction. The command will only perform the swipe within a given container.
Command usage: Equivalent command to the swipe command. This command will swipe inside a container and not the entire screen.
Scenario:
We will use the Amazon application to swipe the menu down.
Note that the menu doesn’t hold on the entire screen so on different devices, we may get different behavior.
Parameters:
Zone: will be set to "NATIVE"
Element: will be set to "id=browse_menu"
Index: will be set to "0"
Direction: will be set to "DOWN"
Offset: will be set to "500"
Time: will be set to "1000"
client.elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);client.ElementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);client.ElementSwipe "NATIVE", "id=browse_menu", 0, "Down", 500, 1000Reportself.client.elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000)$client->elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);