|
29 | 29 |
|
30 | 30 | <p align="center">
|
31 | 31 | <a href="#python_installation">🚀 立即开始</a> |
|
32 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md">🧙♂️ 命令行选项</a> | |
33 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/features_list.md">🏰 功能列表</a> | |
34 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/ReadMe.md">👨🏫 学习示例</a> | |
35 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/mobile_testing.md">📱 移动测试</a> | |
36 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md">📊 测试报告</a> |
| 32 | +<a href="https://seleniumbase.io/help_docs/customizing_test_runs/">🧙♂️ 命令行选项</a> | |
| 33 | +<a href="https://seleniumbase.io/help_docs/features_list/">🏰 功能列表</a> | |
| 34 | +<a href="https://seleniumbase.io/examples/ReadMe/">👨🏫 学习示例</a> | |
| 35 | +<a href="https://seleniumbase.io/help_docs/mobile_testing/">📱 移动测试</a> | |
| 36 | +<a href="https://seleniumbase.io/examples/example_logs/ReadMe/">📊 测试报告</a> |
37 | 37 | <br />
|
38 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md">📖 API语法</a> | |
39 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md">🗺️ 创建旅游</a> | |
40 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/translations.md">🌎 语言翻译</a> | |
41 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_ide/ReadMe.md">⏺️ 录音机工具</a> | |
42 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/master_qa/ReadMe.md">🛂 MasterQA</a> | |
43 |
| -<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/github/workflows/ReadMe.md">🤖 持续集成</a> |
| 38 | +<a href="https://seleniumbase.io/help_docs/method_summary/">📖 API语法</a> | |
| 39 | +<a href="https://seleniumbase.io/examples/tour_examples/ReadMe/">🗺️ 创建旅游</a> | |
| 40 | +<a href="https://seleniumbase.io/help_docs/translations/">🌎 语言翻译</a> | |
| 41 | +<a href="https://seleniumbase.io/seleniumbase/utilities/selenium_ide/ReadMe/">⏺️ 录音机工具</a> | |
| 42 | +<a href="https://seleniumbase.io/examples/master_qa/ReadMe/">🛂 MasterQA</a> | |
| 43 | +<a href="https://seleniumbase.io/integrations/github/workflows/ReadMe/">🤖 持续集成</a> |
44 | 44 | </p>
|
45 | 45 |
|
46 | 46 | <p align="center">
|
|
54 | 54 |
|
55 | 55 | * 需要 **[Python](https://www.python.org/downloads/)** 和 **[Git](https://git-scm.com/)**
|
56 | 56 | * [<img src="https://img.shields.io/pypi/pyversions/seleniumbase.svg?color=22AAEE" alt="Python:2.7|3.5|3.6|3.7|3.8" />](https://www.python.org/downloads/)
|
57 |
| -* 建议配合 [Python virtual env](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) . <i><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/virtualenv_instructions.md">See shortcut</a>.</i> |
| 57 | +* 建议配合 [Python virtual env](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) . <i><a href="https://seleniumbase.io/help_docs/virtualenv_instructions/">See shortcut</a>.</i> |
58 | 58 | * 更新 **[pip](https://pypi.org/project/pip/)** 以防出现警告:
|
59 | 59 |
|
60 | 60 | ```bash
|
@@ -156,12 +156,12 @@ self.switch_to_window(WINDOW_NUMBER) # 切换不同的 window/tab
|
156 | 156 | self.save_screenshot(FILE_NAME) # 保存当前页面的截图
|
157 | 157 | ```
|
158 | 158 |
|
159 |
| -完整的 SeleniumBase methods, 可见: <b><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md">Method Summary</a></b> |
| 159 | +完整的 SeleniumBase methods, 可见: <b><a href="https://seleniumbase.io/help_docs/method_summary/">Method Summary</a></b> |
160 | 160 |
|
161 | 161 | <h2><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> Learn More:</h2>
|
162 | 162 |
|
163 | 163 | <h4>自动化 WebDriver 技能:</h4>
|
164 |
| -SeleniumBase 自动化控制 WebDriver 操作 web browsers(浏览器),在运行失败后进行截图保存. (<i><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md">了解更多关于定制的启动测试用例</a>.</i>) |
| 164 | +SeleniumBase 自动化控制 WebDriver 操作 web browsers(浏览器),在运行失败后进行截图保存. (<i><a href="https://seleniumbase.io/help_docs/customizing_test_runs/">了解更多关于定制的启动测试用例</a>.</i>) |
165 | 165 |
|
166 | 166 | <h4>简易的代码:</h4>
|
167 | 167 | SeleniumBase 使用简单简约的语法, 例如:
|
@@ -205,10 +205,10 @@ nosetests [FILE_NAME].py:[CLASS_NAME].[METHOD_NAME]
|
205 | 205 | 在与页面元素进行交互之前,SeleniumBase方法会自动等待页面元素完成加载(*直到超时限制*)。这意味着您不再需要脚本中随机的' time.sleep() '语句.
|
206 | 206 |
|
207 | 207 | <h4>自动/手动混合模式:</h4>
|
208 |
| -SeleniumBase包括一个名为 <b><a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/masterqa/ReadMe.md">MasterQA</a></b>的解决方案, 通过让自动化执行所有浏览器操作,同时由手动测试人员处理验证,从而加快了手动测试的速度。. |
| 208 | +SeleniumBase包括一个名为 <b><a href="https://seleniumbase.io/examples/master_qa/ReadMe/">MasterQA</a></b>的解决方案, 通过让自动化执行所有浏览器操作,同时由手动测试人员处理验证,从而加快了手动测试的速度。. |
209 | 209 |
|
210 | 210 | <h4>丰富的特性:</h4>
|
211 |
| -获取SeleniumBase特性的完整列表, <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/features_list.md">点击这里</a>. |
| 211 | +获取SeleniumBase特性的完整列表, <a href="https://seleniumbase.io/help_docs/features_list/">点击这里</a>. |
212 | 212 |
|
213 | 213 |
|
214 | 214 | <a id="detailed_instructions"></a>
|
@@ -360,7 +360,7 @@ pytest test_suite.py --browser=firefox
|
360 | 360 |
|
361 | 361 | <h3><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> 测试目录定制:</h3>
|
362 | 362 |
|
363 |
| -用于在SeleniumBase repo之外运行测试 **Pytest**, 你需要一份 **[pytest.ini](https://github.com/seleniumbase/SeleniumBase/blob/master/pytest.ini)** 在根目录上。用于在SeleniumBase repo之外运行测试 **Nosetests**, 你需要拷贝 **[setup.cfg](https://github.com/seleniumbase/SeleniumBase/blob/master/setup.cfg)** 在根目录上. (子文件夹应该包括一个空白的“_”。py“文件。)这些文件指定测试的默认配置细节。(对于运行nosetest,还可以使用``--config ``指定.cfg文件。示例`` nosetests [MY_TEST].py--config=[MY_CONFIG].cfg `` ') |
| 363 | +用于在SeleniumBase repo之外运行测试 <b>Pytest</b>, 你需要一份 <b>[pytest.ini](https://github.com/seleniumbase/SeleniumBase/blob/master/pytest.ini)</b> 在根目录上。用于在SeleniumBase repo之外运行测试 <b>Nosetests</b>, 你需要拷贝 <b>[setup.cfg](https://github.com/seleniumbase/SeleniumBase/blob/master/setup.cfg)</b> 在根目录上. (子文件夹应该包括一个空白的 "__init__.py" 文件。)这些文件指定测试的默认配置细节。(对于运行nosetest,还可以使用``--config ``指定.cfg文件。示例`` nosetests [MY_TEST].py--config=[MY_CONFIG].cfg `` ') |
364 | 364 |
|
365 | 365 | 作为一个快捷方式,您可以运行`` seleniumbase mkdir [DIRECTORY_NAME] ``来创建一个新的文件夹,其中已经包含了必要的文件和一些可以运行的示例测试。例子:
|
366 | 366 |
|
@@ -461,19 +461,19 @@ pytest user_agent_test.py --agent="Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1
|
461 | 461 |
|
462 | 462 | <h3><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> 为网站建设导游服务:</h3>
|
463 | 463 |
|
464 |
| -学习更多内容 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md">SeleniumBase Interactive Walkthroughs</a> (在 ``examples/tour_examples`` 文件). 这对于构建一个在线体验网站的原型非常有用。 |
| 464 | +学习更多内容 <a href="https://seleniumbase.io/examples/tour_examples/ReadMe/">SeleniumBase Interactive Walkthroughs</a> (在 ``examples/tour_examples`` 文件). 这对于构建一个在线体验网站的原型非常有用。 |
465 | 465 |
|
466 | 466 |
|
467 | 467 | <a id="utilizing_advanced_features"></a>
|
468 | 468 | <h3><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> Production Environments & Integrations:</h3>
|
469 | 469 |
|
470 | 470 | 下面是为测试设置生产环境时可以做的一些事情:
|
471 | 471 |
|
472 |
| -* 您可以启动 [Jenkins](https://jenkins.io/) 为定期运行测试构建服务器. 这是一个真实的Jenkins的headless浏览器自动化的例子, check out the <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/azure/jenkins/ReadMe.md">SeleniumBase Jenkins在Azure上的例子</a> 或者 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/google_cloud/ReadMe.md">在谷歌云上的SeleniumBase Jenkins例子</a>. |
| 472 | +* 您可以启动 [Jenkins](https://jenkins.io/) 为定期运行测试构建服务器. 这是一个真实的Jenkins的headless浏览器自动化的例子, check out the <a href="https://seleniumbase.io/integrations/azure/jenkins/ReadMe/">SeleniumBase Jenkins在Azure上的例子</a> 或者 <a href="https://seleniumbase.io/integrations/google_cloud/ReadMe/">在谷歌云上的SeleniumBase Jenkins例子</a>. |
473 | 473 |
|
474 |
| -* 您可以使用 [the Selenium Grid](https://selenium.dev/documentation/en/grid/) 通过在多台机器上并行执行测试来扩展测试. 要做到这一点,请查看 [SeleniumBase selenium_grid folder](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_grid), 这应该有你需要的一切,包括 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md">Selenium Grid ReadMe</a>, 这会帮助你开始. |
| 474 | +* 您可以使用 [the Selenium Grid](https://selenium.dev/documentation/en/grid/) 通过在多台机器上并行执行测试来扩展测试. 要做到这一点,请查看 [SeleniumBase selenium_grid folder](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_grid), 这应该有你需要的一切,包括 <a href="https://seleniumbase.io/seleniumbase/utilities/selenium_grid/ReadMe/">Selenium Grid ReadMe</a>, 这会帮助你开始. |
475 | 475 |
|
476 |
| -* 如果你用 <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/mysql_installation.md">SeleniumBase MySQL 特性</a> 保存在服务器机器上运行的测试结果,你需要安装 [MySQL Workbench](https://dev.mysql.com/downloads/tools/workbench/) 帮助你从你的数据库更容易地读和写. |
| 476 | +* 如果你用 <a href="https://seleniumbase.io/help_docs/mysql_installation/">SeleniumBase MySQL 特性</a> 保存在服务器机器上运行的测试结果,你需要安装 [MySQL Workbench](https://dev.mysql.com/downloads/tools/workbench/) 帮助你从你的数据库更容易地读和写. |
477 | 477 |
|
478 | 478 | * 如果你用 [Slack](https://slack.com), 您可以使用 [Jenkins Slack Plugin](https://github.com/jenkinsci/slack-plugin)很容易地让Jenkins jobs在那里显示结果. 另一种将消息从测试发送到Slack的方法是通过 [Slack's Incoming Webhooks API](https://api.slack.com/incoming-webhooks).
|
479 | 479 |
|
|
0 commit comments