Skip to content

Command Execute Script

Stas Shusha edited this page Jul 14, 2016 · 3 revisions

ExecuteScript command supports only "mobile:" prefixed commands listed below.

  • start- simulate pressing Start/Windows hardware button.
  • search - simulate pressing Search hardware button.
  • invokeMethod - invokes a method of a given class with given parameters that is present in current app's AppDomain modules

Examples

self.driver.execute_script("mobile: start")
self.driver.execute_script("mobile: search")
self.driver.execute_script("mobile: invokeMethod", "TestApp.AutomationApi", "Alert", "space monkeys")
Clone this wiki locally