File tree 4 files changed +9
-20
lines changed
lib/appium_lib_core/common
4 files changed +9
-20
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
6
6
- Update documentation about ` start_recording_screen `
7
7
- Port ` send_keys/type ` for active element
8
8
- Support ` find_element/s :image, partial_image `
9
+ - Requires ` selenium-webdriver 3.14+ ` because of W3C actions
9
10
10
11
### Bug fixes
11
12
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
23
23
spec . require_paths = [ 'lib' ]
24
24
25
- spec . add_runtime_dependency 'selenium-webdriver' , '~> 3.5' , '< 3. 14'
25
+ spec . add_runtime_dependency 'selenium-webdriver' , '~> 3.14'
26
26
spec . add_runtime_dependency 'faye-websocket' , '~> 0.10.0'
27
27
28
28
spec . add_development_dependency 'bundler' , '~> 1.14'
Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ module Core
3
3
class Base
4
4
class Bridge
5
5
class W3C < ::Selenium ::WebDriver ::Remote ::W3C ::Bridge
6
- def self . silence_warnings_redefining ( &block )
7
- warn_level = $VERBOSE
8
- $VERBOSE = nil
9
- result = block . call
10
- $VERBOSE = warn_level
11
- result
12
- end
13
-
14
6
include Device ::DeviceLock
15
7
include Device ::Keyboard
16
8
include Device ::ImeActions
@@ -26,10 +18,6 @@ def self.silence_warnings_redefining(&block)
26
18
include Device ::Device
27
19
include Device ::TouchActions
28
20
29
- # Used for default duration of each touch actions
30
- # Override from 250 milliseconds to 50 milliseconds
31
- W3C . silence_warnings_redefining { ::Selenium ::WebDriver ::PointerActions ::DEFAULT_MOVE_DURATION = 0.05 }
32
-
33
21
def commands ( command )
34
22
::Appium ::Core ::Commands ::W3C ::COMMANDS [ command ]
35
23
end
@@ -48,9 +36,13 @@ def commands(command)
48
36
# element = @driver.find_element(:id, "some id")
49
37
# @driver.action.click(element).perform # The `click` is a part of `PointerActions`
50
38
#
51
- # # You can change the kind as the below.
52
- # @driver.action(kind: :mouse).click(element).perform # The `click` is a part of `PointerActions`
53
- #
39
+ def action ( async = false )
40
+ # Used for default duration of each touch actions
41
+ # Override from 250 milliseconds to 50 milliseconds
42
+ action_builder = super
43
+ action_builder . default_move_duration = 0.05
44
+ action_builder
45
+ end
54
46
55
47
# Port from MJSONWP
56
48
def get_timeouts
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ module W3C
9
9
status : [ :get , 'status' . freeze ] ,
10
10
is_element_displayed : [ :get , 'session/:session_id/element/:id/displayed' . freeze ] ,
11
11
12
- # FIXME: remove after apply https://github.com/SeleniumHQ/selenium/pull/5249
13
- # The fix will be included in selenium-3.8.2
14
- get_page_source : [ :get , 'session/:session_id/source' . freeze ] ,
15
-
16
12
get_timeouts : [ :get , 'session/:session_id/timeouts' . freeze ] ,
17
13
18
14
## Add OSS commands to W3C commands. We can remove them if we would like to remove them from W3C module.
You can’t perform that action at this time.
0 commit comments