Skip to content

Commit 109e848

Browse files
authored
docs: update links (#396)
* update links * fix
1 parent b6e73ac commit 109e848

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

docs/mobile_command.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ Appium has `mobile:` command.
44
We can invoke them via `execute_script` command with `mobile:` arguments.
55

66
- root:
7-
- https://github.com/appium/appium/blob/master/commands-yml/commands/mobile-command.yml
7+
- https://github.com/appium/appium/blob/1.x/commands-yml/commands/mobile-command.yml
88
- Android:
9-
- https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android
9+
- https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/android
1010
- iOS:
11-
- https://github.com/appium/appium/tree/master/docs/en/writing-running-appium/ios
11+
- https://github.com/appium/appium/tree/1.x/docs/en/writing-running-appium/ios
1212

1313

1414
```ruby
15-
# Android shell : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/android-shell.md
15+
# Android shell : https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/android/android-shell.md
1616
args = { command: 'echo', args: 'list' }
1717
@driver.execute_script 'mobile: shell', args # Run `adb shell echo 'list'`
1818

19-
# iOS performance : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios/ios-xctest-performance.md
19+
# iOS performance : https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/ios/ios-xctest-performance.md
2020
args = { timeout: 60 * 1000, profileName: 'Activity Monitor' }
2121
@driver.execute_script 'mobile: startPerfRecord', args
2222

lib/appium_lib_core/common/base/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ def compare_images(mode: :matchFeatures, first_image:, second_image:, options: n
10471047

10481048
# @since Appium 1.8.2
10491049
# Return an element if current view has a partial image. The logic depends on template matching by OpenCV.
1050-
# {https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md image-comparison}
1050+
# {https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/image-comparison.md image-comparison}
10511051
#
10521052
# You can handle settings for the comparision following below.
10531053
# {https://github.com/appium/appium-base-driver/blob/master/lib/basedriver/device-settings.js#L6 device-settings}
@@ -1069,7 +1069,7 @@ def find_element_by_image(img_path)
10691069

10701070
# @since Appium 1.8.2
10711071
# Return elements if current view has a partial image. The logic depends on template matching by OpenCV.
1072-
# {https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md image-comparison}
1072+
# {https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/image-comparison.md image-comparison}
10731073
#
10741074
# You can handle settings for the comparision following below.
10751075
# {https://github.com/appium/appium-base-driver/blob/master/lib/basedriver/device-settings.js#L6 device-settings}

lib/appium_lib_core/common/base/search_context.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module SearchContext
4848
#
4949
# == Find with image
5050
# Return an element if current view has a partial image. The logic depends on template matching by OpenCV.
51-
# {https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/image-comparison.md image-comparison}
51+
# {https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/image-comparison.md image-comparison}
5252
#
5353
# You can handle settings for the comparision following {https://github.com/appium/appium-base-driver/blob/master/lib/basedriver/device-settings.js#L6 here}
5454
#

test/functional/android/android/device_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def test_long_press_keycode
288288
def test_open_notifications
289289
skip if @@core.automation_name == :espresso
290290

291-
# test & comments from https://github.com/appium/appium/blob/master/test/functional/android/apidemos/notifications-specs.js#L19
291+
# test & comments from https://github.com/appium/appium/blob/1.x/test/functional/android/apidemos/notifications-specs.js#L19
292292
# get to the notification page
293293
@@core.wait { scroll_to('App').click }
294294
@@core.wait { scroll_to('Notification').click }

test/functional/android/webdriver/w3c_actions_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _uiautomator2_do_actions_with_many_down_up(element, rect)
159159
def test_multiple_actions
160160
skip_as_appium_version '1.8.0'
161161

162-
# https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/actions.md
162+
# https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/android/actions.md
163163

164164
f1 = ::Selenium::WebDriver::Interactions.pointer(:touch, name: 'finger1')
165165
f1.create_pointer_move(duration: 1, x: 200, y: 500,

test/test_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def android_web
332332
platformName: :android,
333333
automationName: ENV['APPIUM_DRIVER'] || 'uiautomator2',
334334
chromeOptions: { androidPackage: 'com.android.chrome', args: %w(--disable-fre --disable-popup-blocking) },
335-
# refer: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md
335+
# refer: https://github.com/appium/appium/blob/1.x/docs/en/writing-running-appium/web/chromedriver.md
336336
# An emulator 8.1 has Chrome/61.0.3163.98
337337
# Download a chrome driver from https://chromedriver.storage.googleapis.com/index.html?path=2.34/
338338
# chromedriverExecutable: "#{Dir.pwd}/test/functional/app/chromedriver_2.34",

0 commit comments

Comments
 (0)