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: lib/PuppeteerSharp/LaunchOptions.cs
+46-4Lines changed: 46 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,32 +3,74 @@
3
3
4
4
namespacePuppeteerSharp
5
5
{
6
-
publicclassLaunchOptions
6
+
/// <summary>
7
+
/// Options for launching the Chrome/ium browser.
8
+
/// </summary>
9
+
publicclassLaunchOptions:IBrowserOptions
7
10
{
11
+
/// <summary>
12
+
/// Whether to ignore HTTPS errors during navigation. Defaults to false.
13
+
/// </summary>
14
+
publicboolIgnoreHTTPSErrors{get;set;}
15
+
16
+
/// <summary>
17
+
/// If set to true, sets Headless = false, otherwise, enables automation.
18
+
/// </summary>
8
19
publicboolAppMode{get;set;}
9
20
10
-
publicboolIgnoreHTTPSErrors{get;set;}
11
-
21
+
/// <summary>
22
+
/// Whether to run browser in headless mode. Defaults to true unless the devtools option is true.
23
+
/// </summary>
12
24
publicboolHeadless{get;set;}=true;
13
25
26
+
/// <summary>
27
+
/// Path to a Chromium or Chrome executable to run instead of bundled Chromium. If executablePath is a relative path, then it is resolved relative to current working directory.
28
+
/// </summary>
14
29
publicstringExecutablePath{get;set;}
15
30
31
+
/// <summary>
32
+
/// Slows down Puppeteer operations by the specified amount of milliseconds. Useful so that you can see what is going on.
33
+
/// </summary>
16
34
publicintSlowMo{get;set;}
17
35
36
+
/// <summary>
37
+
/// Additional arguments to pass to the browser instance. List of Chromium flags can be found <a href="http://peter.sh/experiments/chromium-command-line-switches/">here</a>.
Copy file name to clipboardExpand all lines: lib/PuppeteerSharp/Launcher.cs
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,17 @@ public Launcher()
60
60
}
61
61
62
62
#region Public methods
63
+
/// <summary>
64
+
/// The method launches a browser instance with given arguments. The browser will be closed when the Browser is disposed.
65
+
/// </summary>
66
+
/// <param name="options">Options for launching Chrome</param>
67
+
/// <param name="chromiumRevision">The revision of Chrome to launch.</param>
68
+
/// <returns>A connected browser.</returns>
69
+
/// <remarks>
70
+
/// See <a href="https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/">this article</a>
71
+
/// for a description of the differences between Chromium and Chrome.
72
+
/// <a href="https://chromium.googlesource.com/chromium/src/+/lkcr/docs/chromium_browser_vs_google_chrome.md">This article</a> describes some differences for Linux users.
0 commit comments