-
Notifications
You must be signed in to change notification settings - Fork 34
Added a new FAQ #872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a new FAQ #872
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| title: "Why Can’t Selenium ChromeDriver Interact With 3DS Authentication Pages?" | ||
| metadesc: "Learn why Selenium hangs on 3DS payment pages and how a simple desired capability prevents ChromeDriver from waiting indefinitely." | ||
| order: 24.20 | ||
| page_id: "why-cant-selenium-chromedriver-interact-with-3ds-authentication-pages?" | ||
| warning: false | ||
| contextual_links: | ||
| - type: section | ||
| name: "Contents" | ||
| - type: link | ||
| name: "Steps to Add the Desired Capability to the Test Case" | ||
| url: "#steps-to-add-the-desired-capability-to-the-test-case" | ||
| --- | ||
|
|
||
| --- | ||
|
|
||
| When you navigate to 3D Secure (3DS) authentication pages such as Visa or Mastercard, Selenium on Chrome or Edge may freeze or time out during execution. | ||
|
|
||
| **Why This Happens** | ||
|
|
||
| 3DS authentication screens load a third-party iframe that runs continuous background scripts from the payment gateway. | ||
|
|
||
| Inside these iframes: | ||
| - Long-running JavaScript and postMessage listeners are always active. | ||
| - Messages are continuously exchanged with the payment provider. | ||
| - The browser keeps processing events and never reaches a fully loaded state. | ||
|
|
||
| As a result: | ||
| - ChromeDriver waits indefinitely for the page to finish loading | ||
| - The pageLoad event never completes | ||
| - Selenium becomes unresponsive after navigation | ||
|
|
||
| To prevent Selenium from waiting indefinitely, you need to add a desired capability to your test case that stops ChromeDriver from waiting for the full page load. | ||
|
|
||
| This article discusses how to add the desired capability to the test case. | ||
|
|
||
|
Comment on lines
+17
to
+36
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use real headings + fix list indentation (markdownlint MD036/MD007).
Proposed change: -**Why This Happens**
+## Why this happens
...
Inside these iframes:
- - Long-running JavaScript and postMessage listeners are always active.
- - Messages are continuously exchanged with the payment provider.
- - The browser keeps processing events and never reaches a fully loaded state.
+- Long-running JavaScript and `postMessage` listeners are always active.
+- Messages are continuously exchanged with the payment provider.
+- The browser keeps processing events and never reaches a fully loaded state.
...
As a result:
- - ChromeDriver waits indefinitely for the page to finish loading
- - The pageLoad event never completes
- - Selenium becomes unresponsive after navigation
+- ChromeDriver waits indefinitely for the page to finish loading.
+- The page load event never completes.
+- Selenium becomes unresponsive after navigation.Also consider hyphenating “full-page load” (Line 33-35) if you keep it as an adjective (“…waiting for the full-page load”). 🧰 Tools🪛 LanguageTool[uncategorized] ~33-~33: If this is a compound adjective that modifies the following noun, use a hyphen. (EN_COMPOUND_ADJECTIVE_INTERNAL) 🪛 markdownlint-cli2 (0.18.1)19-19: Emphasis used instead of a heading (MD036, no-emphasis-as-heading) 24-24: Unordered list indentation (MD007, ul-indent) 25-25: Unordered list indentation (MD007, ul-indent) 26-26: Unordered list indentation (MD007, ul-indent) 29-29: Unordered list indentation (MD007, ul-indent) 30-30: Unordered list indentation (MD007, ul-indent) 31-31: Unordered list indentation (MD007, ul-indent) 🤖 Prompt for AI Agents |
||
| --- | ||
|
|
||
| ## **Steps to Add the Desired Capability to the Test Case** | ||
|
|
||
| 1. From the left navigation bar, go to **Create Tests > Test Cases**. | ||
|  | ||
|
|
||
| 2. In the Test Case Explorer section, expand a **Feature** and a **Scenario** and select the required test case. | ||
|  | ||
|
|
||
| 3. In the Test Case Details page, click **Run**. | ||
|  | ||
|
|
||
| 4. In the **Ad-Hoc Run** overlay, expand the **Desired Capabilities** section, enter the following: | ||
|
|
||
| | **Key** | **Data Type** | **Value** | | ||
| | ------------- | ------------- | ------------- | | ||
| | pageLoadStrategy | String | none | | ||
|
|
||
|  | ||
|
|
||
| 5. Click **Run Now**. | ||
|  | ||
|
|
||
| --- | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant horizontal rules (
---) to avoid confusing front matter vs separators.You have front matter already (Line 1-13). The additional
---blocks at Line 15-16 and Line 37-38 (and trailing---at Line 61) are likely unnecessary and can render oddly depending on the markdown pipeline.Proposed change:
…and delete the later standalone
---lines unless your docs styleguide explicitly requires them.Also applies to: 37-38, 61-61
🤖 Prompt for AI Agents