Skip to content

Commit 408da16

Browse files
committed
docs: update zh-cn translation of file_upload (#2126)[deploy site]
update zh-cn translation of file_upload Co-authored-by: Sri Harsha <[email protected]> d10fdec
1 parent f881790 commit 408da16

File tree

39 files changed

+517
-517
lines changed

39 files changed

+517
-517
lines changed

documentation/_print/index.html

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

documentation/about/_print/index.html

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

documentation/about/copyright/index.html

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

documentation/webdriver/_print/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8511,7 +8511,7 @@
85118511
method to execute a javascript function to scroll (e.g. <code>WebDriver.executeScript('window.scrollBy(0,-250)')</code>)
85128512
or you can utilize the Actions class with <code>Actions.moveToElement(element)</code>.</p><h2 id=invalidsessionidexception>InvalidSessionIdException</h2><p>Sometimes the session you&rsquo;re trying to access is different than what&rsquo;s currently available</p><h3 id=likely-cause-4>Likely Cause</h3><p>This usually occurs when the session has been deleted (e.g. <code>driver.quit()</code>) or if the session has changed,
85138513
like when the last tab/browser has closed (e.g. <code>driver.close()</code>)</p><h3 id=possible-solutions-4>Possible Solutions</h3><p>Check your script for instances of <code>driver.close()</code> and <code>driver.quit()</code>, and any other possible causes
8514-
of closed tabs/browsers. It could be that you are locating an element before you should/can.</p><h2 id=sessionnotcreatedexception>SessionNotCreatedException</h2><p>This exception occurs when the WebDriver is unable to create a new session for the browser. This often happens due to version mismatches, system-level restrictions, or configuration issues.</p><h3 id=likely-cause-5>Likely Cause</h3><ul><li>The browser version and WebDriver version are incompatible (e.g., ChromeDriver v113 with Chrome v115).</li><li>macOS privacy settings may block the WebDriver from running.</li><li>The WebDriver binary is missing, inaccessible, or lacks the necessary execution permissions (e.g., on Linux/macOS, the driver file may not be executable).</li></ul><h3 id=possible-solutions-5>Possible Solutions</h3><ul><li>Ensure the WebDriver version matches the browser version. For Chrome, check the browser version at <code>chrome://settings/help</code> and download the matching driver from <a href=https://chromedriver.chromium.org/downloads>ChromeDriver Downloads</a>.</li><li>On macOS, go to <strong>System Settings > Privacy & Security</strong>, and allow the driver to run if blocked.</li><li>Verify the driver binary is executable (<code>chmod +x /path/to/driver</code> on Linux/macOS).</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-5a7d28a8d143d2eaa2a6727d561e2164>10.1.1 - Unable to Locate Driver Error</h1><div class=lead>Troubleshooting missing path to driver executable.</div><p>Historically, this is the most common error beginning Selenium users get
8514+
of closed tabs/browsers. It could be that you are locating an element before you should/can.</p><h2 id=sessionnotcreatedexception>SessionNotCreatedException</h2><p>This exception occurs when the WebDriver is unable to create a new session for the browser. This often happens due to version mismatches, system-level restrictions, or configuration issues.</p><h3 id=likely-cause-5>Likely Cause</h3><ul><li>The browser version and WebDriver version are incompatible (e.g., ChromeDriver v113 with Chrome v115).</li><li>macOS privacy settings may block the WebDriver from running.</li><li>The WebDriver binary is missing, inaccessible, or lacks the necessary execution permissions (e.g., on Linux/macOS, the driver file may not be executable).</li></ul><h3 id=possible-solutions-5>Possible Solutions</h3><ul><li>Ensure the WebDriver version matches the browser version. For Chrome, check the browser version at <code>chrome://settings/help</code> and download the matching driver from <a href=https://chromedriver.chromium.org/downloads>ChromeDriver Downloads</a>.</li><li>On macOS, go to <strong>System Settings > Privacy & Security</strong>, and allow the driver to run if blocked.</li><li>Verify the driver binary is executable (<code>chmod +x /path/to/driver</code> on Linux/macOS).</li></ul><h2 id=elementnotinteractableexception>ElementNotInteractableException</h2><p>This exception occurs when Selenium tries to interact with an element that is not interactable in its current state.</p><h3 id=likely-cause-6>Likely Cause</h3><ol><li><strong>Unsupported Operation</strong>: Performing an action, like <code>sendKeys</code>, on an element that doesn’t support it (e.g., <code>&lt;form></code> or <code>&lt;label></code>).</li><li><strong>Multiple Elements Matching Locator</strong>: The locator targets a non-interactable element, such as a <code>&lt;td></code> tag, instead of the intended <code>&lt;input></code> field.</li><li><strong>Hidden Elements</strong>: The element is present in the DOM but not visible on the page due to CSS, the <code>hidden</code> attribute, or being outside the visible viewport.</li></ol><h3 id=possible-solutions-6>Possible Solutions</h3><ol><li>Use actions appropriate for the element type (e.g., use <code>sendKeys</code> with <code>&lt;input></code> fields only).</li><li>Ensure locators uniquely identify the intended element to avoid incorrect matches.</li><li>Check if the element is visible on the page before interacting with it. Use scrolling to bring the element into view, if required.</li><li>Use explicit waits to ensure the element is interactable before performing actions.</li></ol></div><div class=td-content style=page-break-before:always><h1 id=pg-5a7d28a8d143d2eaa2a6727d561e2164>10.1.1 - Unable to Locate Driver Error</h1><div class=lead>Troubleshooting missing path to driver executable.</div><p>Historically, this is the most common error beginning Selenium users get
85158515
when trying to run code for the first time:</p><ul class="nav nav-tabs" id=tabs-0 role=tablist><li class=nav-item><button class="nav-link active" id=tabs-00-00-tab data-bs-toggle=tab data-bs-target=#tabs-00-00 role=tab data-td-tp-persist=java aria-controls=tabs-00-00 aria-selected=true>
85168516
Java</button></li><li class=nav-item><button class=nav-link id=tabs-00-01-tab data-bs-toggle=tab data-bs-target=#tabs-00-01 role=tab data-td-tp-persist=python aria-controls=tabs-00-01 aria-selected=false>
85178517
Python</button></li><li class=nav-item><button class=nav-link id=tabs-00-02-tab data-bs-toggle=tab data-bs-target=#tabs-00-02 role=tab data-td-tp-persist=csharp aria-controls=tabs-00-02 aria-selected=false>

documentation/webdriver/troubleshooting/_print/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
method to execute a javascript function to scroll (e.g. <code>WebDriver.executeScript('window.scrollBy(0,-250)')</code>)
5757
or you can utilize the Actions class with <code>Actions.moveToElement(element)</code>.</p><h2 id=invalidsessionidexception>InvalidSessionIdException</h2><p>Sometimes the session you&rsquo;re trying to access is different than what&rsquo;s currently available</p><h3 id=likely-cause-4>Likely Cause</h3><p>This usually occurs when the session has been deleted (e.g. <code>driver.quit()</code>) or if the session has changed,
5858
like when the last tab/browser has closed (e.g. <code>driver.close()</code>)</p><h3 id=possible-solutions-4>Possible Solutions</h3><p>Check your script for instances of <code>driver.close()</code> and <code>driver.quit()</code>, and any other possible causes
59-
of closed tabs/browsers. It could be that you are locating an element before you should/can.</p><h2 id=sessionnotcreatedexception>SessionNotCreatedException</h2><p>This exception occurs when the WebDriver is unable to create a new session for the browser. This often happens due to version mismatches, system-level restrictions, or configuration issues.</p><h3 id=likely-cause-5>Likely Cause</h3><ul><li>The browser version and WebDriver version are incompatible (e.g., ChromeDriver v113 with Chrome v115).</li><li>macOS privacy settings may block the WebDriver from running.</li><li>The WebDriver binary is missing, inaccessible, or lacks the necessary execution permissions (e.g., on Linux/macOS, the driver file may not be executable).</li></ul><h3 id=possible-solutions-5>Possible Solutions</h3><ul><li>Ensure the WebDriver version matches the browser version. For Chrome, check the browser version at <code>chrome://settings/help</code> and download the matching driver from <a href=https://chromedriver.chromium.org/downloads>ChromeDriver Downloads</a>.</li><li>On macOS, go to <strong>System Settings > Privacy & Security</strong>, and allow the driver to run if blocked.</li><li>Verify the driver binary is executable (<code>chmod +x /path/to/driver</code> on Linux/macOS).</li></ul></div><div class=td-content style=page-break-before:always><h1 id=pg-5a7d28a8d143d2eaa2a6727d561e2164>1.1 - Unable to Locate Driver Error</h1><div class=lead>Troubleshooting missing path to driver executable.</div><p>Historically, this is the most common error beginning Selenium users get
59+
of closed tabs/browsers. It could be that you are locating an element before you should/can.</p><h2 id=sessionnotcreatedexception>SessionNotCreatedException</h2><p>This exception occurs when the WebDriver is unable to create a new session for the browser. This often happens due to version mismatches, system-level restrictions, or configuration issues.</p><h3 id=likely-cause-5>Likely Cause</h3><ul><li>The browser version and WebDriver version are incompatible (e.g., ChromeDriver v113 with Chrome v115).</li><li>macOS privacy settings may block the WebDriver from running.</li><li>The WebDriver binary is missing, inaccessible, or lacks the necessary execution permissions (e.g., on Linux/macOS, the driver file may not be executable).</li></ul><h3 id=possible-solutions-5>Possible Solutions</h3><ul><li>Ensure the WebDriver version matches the browser version. For Chrome, check the browser version at <code>chrome://settings/help</code> and download the matching driver from <a href=https://chromedriver.chromium.org/downloads>ChromeDriver Downloads</a>.</li><li>On macOS, go to <strong>System Settings > Privacy & Security</strong>, and allow the driver to run if blocked.</li><li>Verify the driver binary is executable (<code>chmod +x /path/to/driver</code> on Linux/macOS).</li></ul><h2 id=elementnotinteractableexception>ElementNotInteractableException</h2><p>This exception occurs when Selenium tries to interact with an element that is not interactable in its current state.</p><h3 id=likely-cause-6>Likely Cause</h3><ol><li><strong>Unsupported Operation</strong>: Performing an action, like <code>sendKeys</code>, on an element that doesn’t support it (e.g., <code>&lt;form></code> or <code>&lt;label></code>).</li><li><strong>Multiple Elements Matching Locator</strong>: The locator targets a non-interactable element, such as a <code>&lt;td></code> tag, instead of the intended <code>&lt;input></code> field.</li><li><strong>Hidden Elements</strong>: The element is present in the DOM but not visible on the page due to CSS, the <code>hidden</code> attribute, or being outside the visible viewport.</li></ol><h3 id=possible-solutions-6>Possible Solutions</h3><ol><li>Use actions appropriate for the element type (e.g., use <code>sendKeys</code> with <code>&lt;input></code> fields only).</li><li>Ensure locators uniquely identify the intended element to avoid incorrect matches.</li><li>Check if the element is visible on the page before interacting with it. Use scrolling to bring the element into view, if required.</li><li>Use explicit waits to ensure the element is interactable before performing actions.</li></ol></div><div class=td-content style=page-break-before:always><h1 id=pg-5a7d28a8d143d2eaa2a6727d561e2164>1.1 - Unable to Locate Driver Error</h1><div class=lead>Troubleshooting missing path to driver executable.</div><p>Historically, this is the most common error beginning Selenium users get
6060
when trying to run code for the first time:</p><ul class="nav nav-tabs" id=tabs-0 role=tablist><li class=nav-item><button class="nav-link active" id=tabs-00-00-tab data-bs-toggle=tab data-bs-target=#tabs-00-00 role=tab data-td-tp-persist=java aria-controls=tabs-00-00 aria-selected=true>
6161
Java</button></li><li class=nav-item><button class=nav-link id=tabs-00-01-tab data-bs-toggle=tab data-bs-target=#tabs-00-01 role=tab data-td-tp-persist=python aria-controls=tabs-00-01 aria-selected=false>
6262
Python</button></li><li class=nav-item><button class=nav-link id=tabs-00-02-tab data-bs-toggle=tab data-bs-target=#tabs-00-02 role=tab data-td-tp-persist=csharp aria-controls=tabs-00-02 aria-selected=false>

0 commit comments

Comments
 (0)