File tree 2 files changed +4
-3
lines changed
lib/appium_lib/core/ios/uiautomation
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ module Bridge
8
8
def self . for ( target )
9
9
Core ::Ios ::SearchContext . extend
10
10
target . extend Appium ::Ios ::Device
11
- patch_webdriver_element
11
+
12
+ Core ::Ios ::Uiautomation . patch_webdriver_element
12
13
end
13
14
end
14
15
end
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ module Uiautomation
6
6
# class_eval inside a method because class Selenium::WebDriver::Element
7
7
# will trigger as soon as the file is required. in contrast a method
8
8
# 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
11
11
# Cross platform way of entering text into a textfield
12
12
def type ( text , driver = $driver)
13
13
driver . execute_script %(au.getElement('#{ ref } ').setValue('#{ text } ');)
You can’t perform that action at this time.
0 commit comments