File tree 2 files changed +6
-2
lines changed
lib/appium_lib_core/common/base/bridge
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
3
3
4
4
## [ Unreleased]
5
5
### Enhancements
6
+ - Be able to change ` kind ` in W3C touch action.
7
+ - Read: https://github.com/appium/ruby_lib_core/blob/master/lib/appium_lib_core/common/base/bridge/w3c.rb#L29
6
8
7
9
### Bug fixes
8
10
Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ def commands(command)
26
26
# element = @driver.find_element(:id, "some id")
27
27
# @driver.action.click(element).perform # The `click` is a part of `PointerActions`
28
28
#
29
- def action ( async = false )
29
+ # # You can change the kind as the below.
30
+ # @driver.action(kind: :mouse).click(element).perform # The `click` is a part of `PointerActions`
31
+ def action ( async : false , kind : :touch )
30
32
::Selenium ::WebDriver ::W3CActionBuilder . new self ,
31
- ::Selenium ::WebDriver ::Interactions . pointer ( :touch , name : 'touch' ) ,
33
+ ::Selenium ::WebDriver ::Interactions . pointer ( kind , name : kind . to_s ) ,
32
34
::Selenium ::WebDriver ::Interactions . key ( 'keyboard' ) ,
33
35
async
34
36
end
You can’t perform that action at this time.
0 commit comments