Skip to content

Commit 3bdc1f9

Browse files
authored
fix: path for uiautomation (#690)
1 parent 3102784 commit 3bdc1f9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/appium_lib/core/ios/uiautomation/bridge.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module Bridge
88
def self.for(target)
99
Core::Ios::SearchContext.extend
1010
target.extend Appium::Ios::Device
11-
patch_webdriver_element
11+
12+
Core::Ios::Uiautomation.patch_webdriver_element
1213
end
1314
end
1415
end

lib/appium_lib/core/ios/uiautomation/patch.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module Uiautomation
66
# class_eval inside a method because class Selenium::WebDriver::Element
77
# will trigger as soon as the file is required. in contrast a method
88
# will trigger only when invoked.
9-
def patch_webdriver_element
10-
Selenium::WebDriver::Element.class_eval do
9+
def self.patch_webdriver_element
10+
::Selenium::WebDriver::Element.class_eval do
1111
# Cross platform way of entering text into a textfield
1212
def type(text, driver = $driver)
1313
driver.execute_script %(au.getElement('#{ref}').setValue('#{text}');)

0 commit comments

Comments
 (0)