File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ pub type EventHandler =
6666/// * `websocket_stream` - The WebSocket stream for communication protected by an `Arc` wrapped `Mutex`.
6767/// * `pending_commands` - A map of pending commands awaiting responses protected by an `Arc` wrapped `Mutex`.
6868/// * `event_handlers` - A map of events and their handlers protected by an `Arc` wrapped `Mutex`.
69+ #[ derive( Clone ) ]
6970pub struct WebDriverBiDiSession {
7071 pub host : String ,
7172 pub port : u16 ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use serde_json::{json, Value};
1414pub type Extensible = HashMap < String , Value > ;
1515
1616/// Standard WebDriver capabilities https://w3c.github.io/webdriver/#capabilities.
17- #[ derive( Debug , Serialize , Deserialize ) ]
17+ #[ derive( Debug , Serialize , Deserialize , Clone ) ]
1818#[ serde( rename_all = "camelCase" ) ]
1919pub struct CapabilityRequest {
2020 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -77,7 +77,7 @@ impl CapabilityRequest {
7777// --------------------------------------------------
7878
7979/// Capabilities struct to represent the standard capabilities JSON object.
80- #[ derive( Debug , Serialize , Deserialize ) ]
80+ #[ derive( Debug , Serialize , Deserialize , Clone ) ]
8181pub struct CapabilitiesRequest {
8282 #[ serde( rename = "alwaysMatch" , skip_serializing_if = "Option::is_none" ) ]
8383 always_match : Option < CapabilityRequest > ,
You can’t perform that action at this time.
0 commit comments