From 0c58718340b039bbcd3dea658dd03c925a0ab8bf Mon Sep 17 00:00:00 2001 From: Jason Ren <40999116+jasonren0403@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:40:08 +0800 Subject: [PATCH] update zh-cn translation of file_upload --- .../documentation/webdriver/elements/file_upload.zh-cn.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/elements/file_upload.zh-cn.md b/website_and_docs/content/documentation/webdriver/elements/file_upload.zh-cn.md index 021ba2d5cbc0..8690617e4f39 100644 --- a/website_and_docs/content/documentation/webdriver/elements/file_upload.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/elements/file_upload.zh-cn.md @@ -7,9 +7,9 @@ aliases: [ ] --- -Because Selenium cannot interact with the file upload dialog, it provides a way -to upload files without opening the dialog. If the element is an `input` element with type `file`, -you can use the send keys method to send the full path to the file that will be uploaded. +由于 Selenium 不能与文件上传对话框交互,因此它提供了一种无需打开对话框即可上传文件的方法。 +如果该元素是一个类型为 `file` 的 `input` 元素,则可以使用 +send keys 方法发送将要上传文件的完整路径。 {{< tabpane text=true >}} {{< tab header="Java" >}}