You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/webdriver-chromium/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: msedgedevrel
6
6
ms.topic: conceptual
7
7
ms.service: microsoft-edge
8
8
ms.subservice: devtools
9
-
ms.date: 09/24/2024
9
+
ms.date: 12/12/2024
10
10
---
11
11
# Use WebDriver to automate Microsoft Edge
12
12
@@ -281,7 +281,7 @@ You can pass an `EdgeOptions` object to the `EdgeDriver` constructor to configur
281
281
282
282
###### Choose Specific Browser Binaries
283
283
284
-
You can start a WebDriver session with specific Microsoft Edge binaries. For example, you can run tests using the [Microsoft Edge preview channels](https://www.microsoft.com/edge/download/insider), such as Microsoft Edge Beta, Dev, or Canary.
284
+
You can start a WebDriver session with specific Microsoft Edge binaries. For example, you can run tests using the [Microsoft Edge preview channels](https://www.microsoft.com/edge/download/insider), such as Microsoft Edge Beta, Dev, or Canary, as follows:
285
285
286
286
##### [C#](#tab/c-sharp)
287
287
@@ -328,13 +328,13 @@ let driver = edge.Driver.createSession(options);
328
328
329
329
###### Pass extra command-line arguments
330
330
331
-
You can use `EdgeOptions` to configure command-line arguments that will be passed to the Microsoft Edge browser process when a session is created. For example, you can configure the browser to run in headless mode.
331
+
You can use `EdgeOptions` to configure command-line arguments that will be passed to the Microsoft Edge browser process when a session is created. For example, you can configure the browser to run in headless mode, as follows:
332
332
333
333
##### [C#](#tab/c-sharp)
334
334
335
335
```csharp
336
336
varoptions=newEdgeOptions();
337
-
options.AddArgument("headless");
337
+
options.AddArgument("--headless=new");
338
338
339
339
vardriver=newEdgeDriver(options);
340
340
```
@@ -346,7 +346,7 @@ from selenium import webdriver
346
346
from selenium.webdriver.edge.options import Options
0 commit comments