|
1 | 1 | ---
|
2 |
| -title: "Troubleshooting Assistance" |
3 |
| -linkTitle: "Troubleshooting" |
| 2 | +title: "故障排除协助" |
| 3 | +linkTitle: "故障排除" |
4 | 4 | weight: 20
|
5 | 5 | description: >
|
6 |
| - How to get manage WebDriver problems. |
| 6 | + 如何管理 WebDriver 的问题. |
7 | 7 | ---
|
8 | 8 |
|
9 |
| -It is not always obvious the root cause of errors in Selenium. |
| 9 | +Selenium错误的根本原因并不总是很明显. |
10 | 10 |
|
11 |
| -1. The most common Selenium-related error is a result of poor synchronization. |
12 |
| -Read about [Waiting Strategies]({{< ref "../waits" >}}). If you aren't sure if it |
13 |
| -is a synchronization strategy you can try *temporarily* hard coding a large sleep |
14 |
| -where you see the issue, and you'll know if adding an explicit wait can help. |
| 11 | +1. 最常见的Selenium相关错误, 是源自未及时同步的结果. |
| 12 | + 请阅读 [等待策略]({{< ref "../waits" >}}). |
| 13 | + 当遇到一个问题, 如果不确定是否因为同步策略, |
| 14 | + 您可以尝试*暂时*硬编码一个较大的休眠时间, |
| 15 | + 您将明确添加显式等待是否有帮助. |
15 | 16 |
|
16 |
| -2. Note that many errors that get reported to the project are actually caused by |
17 |
| -issues in the underlying drivers that Selenium sends the commands to. You can rule |
18 |
| -out a driver problem by executing the command in multiple [browsers]({{< ref "../browsers/" >}}). |
| 17 | +2. 请注意, 报告给项目的许多错误, |
| 18 | + 实际上是由Selenium向其发送命令的基础驱动程序所引起的. |
| 19 | + 您可以通过执行 [浏览器]({{< ref "../browsers/" >}}) 中的 |
| 20 | + 多个命令来解决驱动程序问题. |
19 | 21 |
|
20 |
| -3. If you have questions about how to do things, check out the [Support options](/support/) |
21 |
| -for ways get assistance. |
| 22 | +3. 如果您对如何执行有疑惑, |
| 23 | + 请查看 [支持选项](/support/) 获取帮助的方法. |
22 | 24 |
|
23 |
| -4. If you think you've found a problem with Selenium code, go ahead and file a |
24 |
| -[Bug Report](https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=I-defect%2Cneeds-triaging&template=bug-report.yml&title=%5B%F0%9F%90%9B+Bug%5D%3A+) |
25 |
| -on GitHub. |
| 25 | +4. 如果您认为您发现了Selenium代码的问题, |
| 26 | + 请在Github上提交 [问题报告](https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=I-defect%2Cneeds-triaging&template=bug-report.yml&title=%5B%F0%9F%90%9B+Bug%5D%3A+). |
26 | 27 |
|
27 | 28 |
|
0 commit comments