<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 記錄事件 存儲一個自定義事件 ## 使用示例 ```java // Java CustomEvent evt = new CustomEvent(); evt.setEventName("funEvent"); evt.setVendor("appium"); driver.logEvent(evt); ``` ```python # Python driver.log_event('appium', 'funEvent') ``` ```javascript // Javascript // webdriver.io example driver.logEvent('appium', 'funEvent') // wd example // WD code here ``` ```ruby # Ruby # ruby_lib example driver.log_event vendor: 'appium', event: 'funEvent' # ruby_lib_core example @driver.logs.event vendor: 'appium', event: 'funEvent' @driver.logs.event = { vendor: 'appium', event: 'anotherEvent' } ``` ```php # PHP // PHP Code here ``` ```csharp // C# // csharp Code here ``` ## 描述 此API允許我們存儲一個自定義的事件。 Appium提供[Appium Event Timing](/advanced-concepts/event-timings/)來追蹤事件何時發生。 自定義事件特性允許用戶將一個自定義事件作為特性來存儲。 ## 支持 ### Appium Server | 平臺 | Driver | 平臺版本 | Appium版本 | Driver版本 | |--------|----------------|------|--------------|--------------| | iOS | [XCUITest](../../drivers/ios-xcuitest.md) | 9.3+ | 1.16.0+ | All | | | [UIAutomation](../../drivers/ios-uiautomation.md) | 8.0 to 9.3 | 1.16.0+ | All | | Android | [Espresso](../../drivers/android-espresso.md) | ?+ | 1.16.0+ | All | | | [UiAutomator2](../../drivers/android-uiautomator2.md) | ?+ | 1.16.0+ | All | | | [UiAutomator](../../drivers/android-uiautomator.md) | 4.3+ | 1.16.0+ | All | | Mac | [Mac](../../drivers/mac.md) | ?+ | 1.16.0+ | All | | Windows | [Windows](../../drivers/windows.md) | 10+ | 1.16.0+ | All | ### Appium客戶端 | 語言 | 支持版本 | 文檔 | |--------|-------|-------------| |[Java](https://github.com/appium/java-client/releases/latest)| All | [seleniumhq.github.io](https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html#click--) | |[Python](https://github.com/appium/python-client/releases/latest)| All | [appium.github.io](https://appium.github.io/python-client-sphinx/webdriver.extensions.html#webdriver.extensions.log_event.LogEvent.log_event) | |[Javascript (WebdriverIO)](http://webdriver.io/index.html)| None | | |[Javascript (WD)](https://github.com/admc/wd/releases/latest)| None | [github.com](https://github.com/admc/wd/releases) | |[Ruby](https://github.com/appium/ruby_lib/releases/latest)| All | [www.rubydoc.info](https://www.rubydoc.info/gems/appium_lib/Appium/Driver#log_event-instance_method) | |[PHP](https://github.com/appium/php-client/releases/latest)| None | [github.com](https://github.com/appium/php-client/releases/latest) | |[C#](https://github.com/appium/appium-dotnet-driver/releases/latest)| None | [github.com](https://github.com/appium/appium) | ## HTTP API 規范 ### 終端 `POST /session/:session_id/appium/log_event` ### URL參數 None ### JSON參數 | 名稱 | 類型 | 描述 | |----|----|-----------| | vendor | `string` | 事件提供者的名字。會出現在 `vendor:event`中`vendor`的位置 | | event | `string` | 事件的名字。 會出現在 `vendor:event`中`event`的位置 | ### 響應 null ## 參考 * [JSONWP Specification](https://github.com/appium/appium-base-driver/blob/master/lib/protocol/routes.js#L600) * [add new route to allow logging of custom events](https://github.com/appium/appium-base-driver/pull/364) 本文由 [KangarooChen](https://github.com/KangarooChen) 翻譯,Last english version: 2b60bef0264515c912137d038c8f64e580050497, 11 May 2020
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看