File tree 5 files changed +11
-6
lines changed
5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ def _fix_android_native_source(source)
105
105
106
106
# <android.app.ActionBar$Tab => <android.app.ActionBar.Tab
107
107
# </android.app.ActionBar$Tab> => </android.app.ActionBar.Tab>
108
- source = source . gsub ( /<#{ before } \s *\$ \s *#{ after } / , "<#{ fixed } " ) . gsub ( /<\/ #{ before } \s *\$ \s *#{ after } >/ , "</#{ fixed } >" )
108
+ source = source . gsub ( /<#{ before } \s *\$ \s *#{ after } / ,
109
+ "<#{ fixed } " ) . gsub ( /<\/ #{ before } \s *\$ \s *#{ after } >/ , "</#{ fixed } >" )
109
110
end
110
111
111
112
source
Original file line number Diff line number Diff line change @@ -221,7 +221,8 @@ def characters(chars)
221
221
end
222
222
223
223
def _no_such_element
224
- raise Selenium ::WebDriver ::Error ::NoSuchElementError , 'An element could not be located on the page using the given search parameters.'
224
+ raise Selenium ::WebDriver ::Error ::NoSuchElementError ,
225
+ 'An element could not be located on the page using the given search parameters.'
225
226
end
226
227
end # module Common
227
228
end # module Appium
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ def patch_webdriver_bridge
67
67
Selenium ::WebDriver ::Remote ::Bridge . class_eval do
68
68
# Code from lib/selenium/webdriver/remote/bridge.rb
69
69
def raw_execute ( command , opts = { } , command_hash = nil )
70
- verb , path = Selenium ::WebDriver ::Remote ::COMMANDS [ command ] || raise ( ArgumentError , "unknown command: #{ command . inspect } " )
71
- path = path . dup
70
+ verb , path = Selenium ::WebDriver ::Remote ::COMMANDS [ command ] ||
71
+ raise ( ArgumentError , "unknown command: #{ command . inspect } " )
72
+ path = path . dup
72
73
73
74
path [ ':session_id' ] = @session_id if path . include? ( ':session_id' )
74
75
Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ def background_app(duration)
162
162
# @param [String] The activity to start before the target activity [optional]
163
163
#
164
164
# ```ruby
165
- # start_activity app_package: 'io.appium.android.apis', app_activity: '.accessibility.AccessibilityNodeProviderActivity'
165
+ # start_activity app_package: 'io.appium.android.apis',
166
+ # app_activity: '.accessibility.AccessibilityNodeProviderActivity'
166
167
# ```
167
168
add_endpoint_method ( :start_activity , 'session/:session_id/appium/device/start_activity' ) do
168
169
def start_activity ( opts )
Original file line number Diff line number Diff line change @@ -296,7 +296,8 @@ def initialize(opts = {})
296
296
297
297
# https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
298
298
@appium_device = @caps [ :platformName ]
299
- @appium_device = @appium_device . is_a? ( Symbol ) ? @appium_device : @appium_device . downcase . strip . intern if @appium_device
299
+ @appium_device = @appium_device . is_a? ( Symbol ) ?
300
+ @appium_device : @appium_device . downcase . strip . intern if @appium_device
300
301
raise "platformName must be set. Not found in options: #{ opts } " unless @appium_device
301
302
raise 'platformName must be Android or iOS' unless [ :android , :ios ] . include? ( @appium_device )
302
303
You can’t perform that action at this time.
0 commit comments