Sha256: caae6b13caa94f10465378885029144330a3c7884bb6bae97020f9133a24d044

Contents?: true

Size: 1.3 KB

Versions: 15

Compression:

Stored size: 1.3 KB

Contents

module Appium
  module Core
    class Base
      class Bridge
        class MJSONWP < ::Selenium::WebDriver::Remote::OSS::Bridge
          include Device::DeviceLock
          include Device::Keyboard
          include Device::ImeActions
          include Device::Setting
          include Device::Context
          include Device::Value
          include Device::FileManagement
          include Device::KeyEvent
          include Device::ImageComparison
          include Device::AppManagement
          include Device::AppState
          include Device::ScreenRecord::Command
          include Device::Device
          include Device::TouchActions

          def commands(command)
            ::Appium::Core::Commands::MJSONWP::COMMANDS[command]
          end

          def take_element_screenshot(element)
            execute :take_element_screenshot, id: element.ref
          end

          def take_viewport_screenshot
            # TODO: this hasn't been supported by Espresso driver
            execute_script('mobile: viewportScreenshot')
          end

          def send_actions(_data)
            raise Error::UnsupportedOperationError, '#send_actions has not been supported in MJSONWP'
          end
        end # class MJSONWP
      end # class Bridge
    end # class Base
  end # module Core
end # module Appium

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
appium_lib_core-3.0.2 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-3.0.1 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-3.0.0 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.3.4 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.3.3 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.3.2 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.3.1 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.3.0 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.2.2 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.2.1 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.2.0 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.1.1 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.1.0 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.0.6 lib/appium_lib_core/common/base/bridge/mjsonwp.rb
appium_lib_core-2.0.5 lib/appium_lib_core/common/base/bridge/mjsonwp.rb