File tree 4 files changed +42
-6
lines changed
4 files changed +42
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Appium::Driver.new(caps: apk).start_driver
51
51
52
52
Example use of Appium's mobile gesture.
53
53
54
- > @driver .find_element ()
54
+ > @driver .find_element_with_appium ()
55
55
56
56
` console.rb ` uses some code from [ simple_test.rb] (
57
57
https://github.com/appium/appium/blob/82995f47408530c80c3376f4e07a1f649d96ba22/sample-code/examples/ruby/simple_test.rb ) and is released under the [ same license] ( https://github.com/appium/appium/blob/c58eeb66f2d6fa3b9a89d188a2e657cca7cb300f/LICENSE ) as Appium. The [ Accessibility Inspector] ( https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/iPhoneAccessibility/Testing_Accessibility/Testing_Accessibility.html ) is helpful for discovering button names and textfield values.
Original file line number Diff line number Diff line change
1
+ ### Breaking Changes in 9.1.0
2
+ change ` @selenium_driver.find_element/s ` to ` @selenium_driver.find_element/s_with_appium ` .
3
+ ref: https://github.com/appium/ruby_lib/pull/383
4
+
5
+ Old | New
6
+ :--|:--
7
+ ` @selenium_driver.find_element/s ` | ` @selenium_driver.find_element/s_with_appium `
8
+
9
+ - after
10
+
11
+ ```
12
+ @selenium_driver.find_element_with_appium :accessibility_id, "some ids"
13
+ @selenium_driver.find_elements_with_appium :accessibility_id, "some ids"
14
+ ```
15
+
16
+ - before
17
+
18
+ ```
19
+ @selenium_driver.find_element :accessibility_id, "some ids"
20
+ @selenium_driver.find_elements :accessibility_id, "some ids"
21
+ ```
22
+
1
23
### Breaking Changes in 8.2.0
2
24
change ` Appium.load_appium_txt ` to ` Appium.load_settings ` .
3
25
Original file line number Diff line number Diff line change @@ -423,10 +423,10 @@ def create_bridge_command(method)
423
423
end
424
424
end
425
425
426
- # @!method find_element
427
- # @!method find_elements
426
+ # @!method find_element_with_appium
427
+ # @!method find_elements_with_appium
428
428
#
429
- # find_element/s with their accessibility_id
429
+ # find_element/s_with_appium with their accessibility_id
430
430
#
431
431
# ```ruby
432
432
# find_elements :accessibility_id, 'Animation'
Original file line number Diff line number Diff line change @@ -688,15 +688,29 @@ def execute_script(script, *args)
688
688
@driver . execute_script script , *args
689
689
end
690
690
691
- # Calls @driver.find_elements
691
+ # Calls @driver.find_elements_with_appium
692
+ #
693
+ # ```
694
+ # @driver = Appium::Driver.new()
695
+ # @driver.find_elements :predicate, yyy
696
+ # ```
697
+ #
698
+ # If you call `Appium.promote_appium_methods`, you can call `find_elements` directly.
692
699
#
693
700
# @param [*args] args The args to use
694
701
# @return [Array<Element>] Array is empty when no elements are found.
695
702
def find_elements ( *args )
696
703
@driver . find_elements_with_appium ( *args )
697
704
end
698
705
699
- # Calls @driver.find_elements
706
+ # Calls @driver.find_element_with_appium
707
+ #
708
+ # ```
709
+ # @driver = Appium::Driver.new()
710
+ # @driver.find_element :accessibility_id, zzz
711
+ # ```
712
+ #
713
+ # If you call `Appium.promote_appium_methods`, you can call `find_element` directly.
700
714
#
701
715
# @param [*args] args The args to use
702
716
# @return [Element]
You can’t perform that action at this time.
0 commit comments