Method: Appium::Core::Base::Bridge#action
- Defined in:
- lib/appium_lib_core/common/base/bridge.rb
#action(_deprecated_async = nil, async: false, devices: nil) ⇒ Object
Perform ‘touch’ actions for W3C module. Generate touch pointer action here and users can use this via driver.action
-
www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/ActionBuilder.html
-
www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
-
www.selenium.dev/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
The pointer type is ‘touch’ by default in the Appium Ruby client.
208 209 210 211 212 213 214 215 216 217 |
# File 'lib/appium_lib_core/common/base/bridge.rb', line 208 def action(_deprecated_async = nil, async: false, devices: nil) # steep:ignore:start ::Selenium::WebDriver::ActionBuilder.new( self, devices: devices || [::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch')], async: async, duration: 50 # milliseconds ) # steep:ignore:end end |