Get events
Get events stored in appium server
//: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/session/events/get-events.yml)
Example Usage
// Java
driver.getEvents();
# Python
driver.get_events()
driver.get_events(['event1', 'event2'])
// Javascript
// webdriver.io example
browser.getEvents(['event'])
// wd example
// WD code here
# Ruby
# ruby_lib example
driver.log_events
driver.log_events('event')
driver.log_events(['event1', 'event2'])
# ruby_lib_core example
@driver.logs.events
@driver.logs.events('event')
@driver.logs.events(['event1', 'event2'])
# PHP
// PHP Code here
// C#
// csharp code here
Support
Appium Server
Platform | Driver | Platform Versions | Appium Version | Driver Version |
---|---|---|---|---|
iOS | XCUITest | 9.3+ | 1.16.0+ | All |
UIAutomation | 8.0 to 9.3 | 1.16.0+ | All | |
Android | Espresso | ?+ | 1.16.0+ | All |
UiAutomator2 | ?+ | 1.16.0+ | All | |
UiAutomator | 4.3+ | 1.16.0+ | All | |
Mac | Mac | ?+ | 1.16.0+ | All |
Windows | Windows | 10+ | 1.16.0+ | All |
Appium Clients
Language | Support | Documentation |
---|---|---|
Java | All | seleniumhq.github.io |
Python | All | appium.github.io |
Javascript (WebdriverIO) | None | |
Javascript (WD) | None | github.com |
Ruby | All | www.rubydoc.info |
PHP | None | github.com |
C# | None | github.com |
HTTP API Specifications
Endpoint
POST /session/:session_id/appium/events
URL Parameters
None
JSON Parameters
name | type | description |
---|---|---|
type | `string | array` |
Response
A JSON hash of events like {'commands' => [{'cmd' => 123455, ....}], 'startTime' => 1572954894127, }
. A filtered by type
item if it is provided. (object
)
See Also
官方链接为:Get events - Appium