Appium-API-Execute Mobile Command

Execute Mobile Command

Java:driver.executeScript("mobile: scroll", ImmutableMap.of("direction", "down"));

Python:self.driver.execute_script("mobile: scroll", {'direction': 'down'})

Description

Execute a variety of native, mobile commands that aren't associated with a specific endpoint Syntax is
execute("mobile: <commandName>", <JSON serializable argument>) (see Execute Script for more details on syntax).

http://appium.io/docs/en/commands/mobile-command/index.html

posted @ 2019-03-07 08:46  bamboo233  阅读(526)  评论(0编辑  收藏  举报