Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
Add support for socksVersion (#115)
Browse files Browse the repository at this point in the history
To add a socks proxy the socks version is a required capability.
This patch adds the handling of the capability.
  • Loading branch information
whimboo authored and AutomatedTester committed Aug 18, 2017
1 parent f425681 commit 94cdfcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ impl SpecNewSessionParameters {
"httpProxy" => try!(SpecNewSessionParameters::validate_host(value)),
"sslProxy" => try!(SpecNewSessionParameters::validate_host(value)),
"socksProxy" => try!(SpecNewSessionParameters::validate_host(value)),
"socksVersion" => if !value.is_number() {
return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
"socksVersion was not a number"))
},
"socksUsername" => if !value.is_string() {
return Err(WebDriverError::new(ErrorStatus::InvalidArgument,
"socksUsername was not a string"))
Expand Down

0 comments on commit 94cdfcb

Please sign in to comment.