From 8989ed6dd4c25af80cad59b06d9347d8b2eaf509 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Sun, 27 Apr 2014 20:09:30 -0400 Subject: [PATCH] Fix more broken links --- docs/cn/README.md | 8 ++++---- docs/cn/hybrid.cn.md | 6 +++--- docs/cn/mobile-web.cn.md | 2 +- docs/cn/mobile_methods.cn.md | 2 +- docs/cn/running-tests.cn.md | 2 +- docs/cn/troubleshooting.cn.md | 8 ++++---- docs/en/finding-elements.md | 2 +- docs/en/hybrid.md | 2 +- docs/en/mobile_methods.md | 2 +- docs/en/platform-support.md | 2 +- docs/en/troubleshooting.md | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/cn/README.md b/docs/cn/README.md index 46dcfdac1..4742ce765 100644 --- a/docs/cn/README.md +++ b/docs/cn/README.md @@ -40,14 +40,14 @@ Appium最终开启了跨平台原生移动自动化的可能. * Mac OS X 10.7 or higher, 10.8.4 recommended * XCode >= 4.6.3 * Apple Developer Tools (iPhone simulator SDK, command line tools) -* [Ensure you read our documentation on setting yourself up for iOS testing!](running-on-osx.cn.md#ios) +* [Ensure you read our documentation on setting yourself up for iOS testing!](running-on-osx.cn.md) ### android依赖 * [Android SDK](http://developer.android.com) API >= 17 (Additional features require 18) * Appium支持OS X上的Android, Linux和Windows上的beta支持.确保你通过如下的指示来配置你需要运行测试的不同系统的环境 * [linux](running-on-linux.cn.md) - * [osx](running-on-osx.cn.md#android) + * [osx](running-on-osx.cn.md) * [windows](running-on-windows.cn.md) ### FirefoxOS Requirements @@ -83,7 +83,7 @@ Appium最终开启了跨平台原生移动自动化的可能. 这个代码地址包含了 [很多不同语言的测试例子](/sample-code/examples/node)! -想了解全部的Appium的文档页面,请访问 [这个目录](https://github.com/appium/appium/blob/master/docs/). +想了解全部的Appium的文档页面,请访问 [这个目录](#). ## 工作原理 @@ -98,7 +98,7 @@ FirefoxOS的支持依赖一个基于Gecko平台并且兼容WebDriver的自动化 ## 如何贡献代码 -可以看下我们的文档 [contribution documentation](https://github.com/appium/appium/blob/master/CONTRIBUTING.md) +可以看下我们的文档 [contribution documentation](../../CONTRIBUTING.md) 以了解如何从源代码中进行编译,测试和运行 diff --git a/docs/cn/hybrid.cn.md b/docs/cn/hybrid.cn.md index 6bfe03b70..e680a2380 100644 --- a/docs/cn/hybrid.cn.md +++ b/docs/cn/hybrid.cn.md @@ -2,8 +2,8 @@ Appium 其中一个理念就是你不能为了测试应用而修改应用。为了符合这个方法学,我们可以使用 Selenium 测试传统 web 应用的方法来测试混合 web 应用 (比如,iOS 应用里的元素 "UIWebView" ),这是有可能的。这里会有一些技术性的复杂,Appium 需要知道你是想测试原生部分呢还是web部分。幸运的是,我们还能遵守 WebDriver 的协议。 -* [混合 iOS 应用](hybrid.cn.md#ios) -* [混合 Android 应用](hybrid.cn.md#android) +* [混合 iOS 应用](hybrid.cn.md) +* [混合 Android 应用](hybrid.cn.md) ## 自动化混合 iOS 应用 @@ -76,7 +76,7 @@ appium 使用一个远程调试器建立连接来实现和 web 视图的交互 }); ``` -* 想看到具体的上下文,请看[该node 的例子](https://github.com/appium/appium/blob/master/sample-code/examples/node/hybrid.js) +* 想看到具体的上下文,请看[该node 的例子](/sample-code/examples/node/hybrid.js) * *我们正在完善 web 视图下面的方法。[加入我们!](http://appium.io/get-involved.html) ## Wd.java 代码例子 diff --git a/docs/cn/mobile-web.cn.md b/docs/cn/mobile-web.cn.md index 7d5fa09be..ad6b411ae 100644 --- a/docs/cn/mobile-web.cn.md +++ b/docs/cn/mobile-web.cn.md @@ -27,7 +27,7 @@ ### 前期设置 当你要在真机上的Safari中执行你的测试脚本之前你需要先注意以下几点: -*安装并正常运行**ios-webkit-debug-proxy**(具体可以参考(s[hybrid docs](https://github.com/appium/appium/blob/master/docs/hybrid.md)) +*安装并正常运行**ios-webkit-debug-proxy**(具体可以参考(s[hybrid docs](hybrid.md)) *打开iOS真机中的**web inspector**,可以在iOS6.0或更高版本中的**设置 > safari > 高级**找到。 *创建一个**provisioning profile** 能够帮助你配置safariLauncher. * diff --git a/docs/cn/mobile_methods.cn.md b/docs/cn/mobile_methods.cn.md index 15b5cf85a..d3d3f677d 100644 --- a/docs/cn/mobile_methods.cn.md +++ b/docs/cn/mobile_methods.cn.md @@ -49,7 +49,7 @@ Java Java -[MobileFindJavaTest.java](https://github.com/appium/appium/blob/master/sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) +[MobileFindJavaTest.java](/sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) Ruby + [appium_lib gem](https://github.com/appium/ruby_lib) diff --git a/docs/cn/running-tests.cn.md b/docs/cn/running-tests.cn.md index 68dbaa887..f71af1d1b 100644 --- a/docs/cn/running-tests.cn.md +++ b/docs/cn/running-tests.cn.md @@ -44,7 +44,7 @@ ## 用Appium測試你的app (Android) -首先,先確定你有一個而且必須是只能一個Android模擬器或著設備連接著。如果你輸入`adb devices`,你應該只看到一個設備連接著。這將是Appium所用來測試的設備。當然,要連接一個設備,你需要準備好一個Android AVD (參考 [系統設置](https://github.com/appium/appium/blob/master/docs/system-setup.md#android) 以了解更多). 如果Android SDK工具在你的路徑下,你可以簡單的執行: +首先,先確定你有一個而且必須是只能一個Android模擬器或著設備連接著。如果你輸入`adb devices`,你應該只看到一個設備連接著。這將是Appium所用來測試的設備。當然,要連接一個設備,你需要準備好一個Android AVD (參考 [系統設置](system-setup.md) 以了解更多). 如果Android SDK工具在你的路徑下,你可以簡單的執行: emulator -avd <我的Avd名稱> diff --git a/docs/cn/troubleshooting.cn.md b/docs/cn/troubleshooting.cn.md index 4c39a5850..150a8b582 100644 --- a/docs/cn/troubleshooting.cn.md +++ b/docs/cn/troubleshooting.cn.md @@ -5,7 +5,7 @@ ## 一般问题 * 确保你是根据 [README](README.md) 里面的入门指南按部就班的。 -* 确保你的系统配置好了(比如, xCode 是最新的,Android SDK 安装好了, `ANDROID_HOME` 配置好了,参照 [setup instructions](https://github.com/appium/appium/blob/master/docs/running-on-osx.md) ). +* 确保你的系统配置好了(比如, xCode 是最新的,Android SDK 安装好了, `ANDROID_HOME` 配置好了,参照 [setup instructions](running-on-osx.md) ). * 确保你应用的路径正确。 ## 如果你从 Appium.app 运行的话 (通过 dmg 安装的) @@ -31,8 +31,8 @@ * 确保 Android 模拟器启动并运行着。 * 有时候需要运行 `adb kill-server && adb devices`。它可以帮助重置和Android设备之间的连接。 -* Make sure you know about the `app-package`, `app-activity`, and `app-wait-activity` desiredCapabilities (see [this doc](https://github.com/appium/appium/blob/master/docs/running-tests.md#run-android) for more information). -* 你得知道 `app-package`, `app-activity` 和 `app-wait-activity` (详见 [文档](https://github.com/appium/appium/blob/master/docs/running-tests.md#run-android)). +* Make sure you know about the `app-package`, `app-activity`, and `app-wait-activity` desiredCapabilities (see [this doc](running-tests.md) for more information). +* 你得知道 `app-package`, `app-activity` 和 `app-wait-activity` (详见 [文档](running-tests.md)). ## IOS @@ -72,7 +72,7 @@ * 如果你从 Node 官网安装的 Node,那需要你使用 sudo 运行 npm。这其实并不好,试试看用 `brew install node`。 * 使用 proxy,Webview 可以支持 iOS 真机。 见 [discussion](https://groups.google.com/d/msg/appium-discuss/u1ropm4OEbY/uJ3y422a5_kJ). -* 有时候, iOS 的 UI 元素在定位到之后几毫秒会突然变得无效。这会导致一个类似`(null) cannot be tapped`的错误。唯一的解决方法就是把finding-and-acting的代码放到 retry 块里。参见 `mobile: findAndAct` [finding elements doc page](https://github.com/appium/appium/blob/master/docs/finding-elements.md) +* 有时候, iOS 的 UI 元素在定位到之后几毫秒会突然变得无效。这会导致一个类似`(null) cannot be tapped`的错误。唯一的解决方法就是把finding-and-acting的代码放到 retry 块里。参见 `mobile: findAndAct` [finding elements doc page](finding-elements.md) * 如果你通过 MacPorts 安装的 node 和 npm,那么确保 MacPorts 的 bin 文件夹 (`/opt/local/bin`) 被添加到环境变量 `PATH` 中去。 ## Specific Errors diff --git a/docs/en/finding-elements.md b/docs/en/finding-elements.md index b3f9a3f78..13dd1683a 100644 --- a/docs/en/finding-elements.md +++ b/docs/en/finding-elements.md @@ -169,7 +169,7 @@ args = {'startX':0.5, 'startY':0.2, 'endX':0.5, 'endY':0.95, 'tapCount':1, 'dura driver.execute_script(js_snippet, args) ``` -Note: driver.execute_script() is explained in [Automating Mobile Gestures: Alternative access method](gestures.md#alternative-access-method) +Note: driver.execute_script() is explained in [Automating Mobile Gestures: Alternative access method](gestures.md) ## Using The Appium Inspector To Locate Elements diff --git a/docs/en/hybrid.md b/docs/en/hybrid.md index 2b1209a2b..5616a8b8d 100644 --- a/docs/en/hybrid.md +++ b/docs/en/hybrid.md @@ -101,7 +101,7 @@ iOS 6** and was not available previously. }); ``` -* For the full context, see [this node example](https://github.com/appium/appium/blob/master/sample-code/examples/node/hybrid.js) +* For the full context, see [this node example](/sample-code/examples/node/hybrid.js) * *we're working on filling out the methods available in web view contexts. [Join us in our quest!](http://appium.io/get-involved.html) ## Wd.java Code example diff --git a/docs/en/mobile_methods.md b/docs/en/mobile_methods.md index 00c72f34f..104669300 100644 --- a/docs/en/mobile_methods.md +++ b/docs/en/mobile_methods.md @@ -70,7 +70,7 @@ Ruby without the gem Java -See [MobileFindJavaTest.java](https://github.com/appium/appium/blob/master/sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) +See [MobileFindJavaTest.java](/sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) Ruby + [appium_lib gem](https://github.com/appium/ruby_lib) diff --git a/docs/en/platform-support.md b/docs/en/platform-support.md index 3f7f02e6e..d812e524f 100644 --- a/docs/en/platform-support.md +++ b/docs/en/platform-support.md @@ -25,7 +25,7 @@ See [Running on OS X: iOS](running-on-osx.md) for iOS requirements and setup ins ## Android Support -See [Running on OS X: Android](running-on-osx.md#android), [Running on Windows](running-on-windows.md), or [Running on Linux](running-on-linux.md) for Android requirements and setup instructions. +See [Running on OS X: Android](running-on-osx.md), [Running on Windows](running-on-windows.md), or [Running on Linux](running-on-linux.md) for Android requirements and setup instructions. * Versions: 2.3 and up * Versions 4.2 and up are supported via Appium's own [UiAutomator](http://developer.android.com/tools/help/uiautomator/index.html) diff --git a/docs/en/troubleshooting.md b/docs/en/troubleshooting.md index d4f2ba9dc..75d55797f 100644 --- a/docs/en/troubleshooting.md +++ b/docs/en/troubleshooting.md @@ -5,7 +5,7 @@ to github or write to the appium-discuss mailing list. ## General -* Make sure you've followed the getting started steps in the [README](https://github.com/appium/appium/blob/master/README.md) +* Make sure you've followed the getting started steps in the [README](../../README.md) * Make sure your system is set up appropriately (i.e., XCode is updated, Android SDK is installed and `ANDROID_HOME` is set: [setup instructions](running-on-osx.md)