Skip to content

Commit eb9f660

Browse files
liviocjimevans
authored andcommitted
Adding additional PhantomJS command-line options to .NET bindings
Added the ProxyAuthorization property and SslCertificatesPath property to the PhantomJSDriverSerivce class. These translate to the --proxy-auth and --ssl-certificates-path command line options on PhantomJS respectively. Signed-off-by: Jim Evans <[email protected]>
1 parent b2483a1 commit eb9f660

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: dotnet/src/webdriver/PhantomJS/PhantomJSDriverService.cs

+14
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ private PhantomJSDriverService(string executablePath, string executableFileName,
157157
[CommandLineArgumentName("proxy-type")]
158158
public string ProxyType { get; set; }
159159

160+
/// <summary>
161+
/// Gets or sets the proxy authentication info (e.g. username:password).
162+
/// </summary>
163+
[JsonProperty("proxyAuth", NullValueHandling = NullValueHandling.Ignore)]
164+
[CommandLineArgumentName("proxy-auth")]
165+
public string ProxyAuthentication { get; set; }
166+
160167
/// <summary>
161168
/// Gets or sets the encoding used for the starting script (default is "utf8").
162169
/// </summary>
@@ -173,6 +180,13 @@ private PhantomJSDriverService(string executablePath, string executableFileName,
173180
[CommandLineArgumentName("ssl-protocol")]
174181
public string SslProtocol { get; set; }
175182

183+
/// <summary>
184+
/// Gets or sets the location for custom CA certificates (if none set, uses system default).
185+
/// </summary>
186+
[JsonProperty("sslCertificatesPath", NullValueHandling = NullValueHandling.Ignore)]
187+
[CommandLineArgumentName("ssl-certificates-path")]
188+
public string SslCertificatesPath { get; set; }
189+
176190
/// <summary>
177191
/// Gets or sets a value indicating whether web security is enabled and forbids cross-domain XHR (default is yes).
178192
/// </summary>

0 commit comments

Comments
 (0)