From 66ca69db163bff95d600cec6d58a3f0b29b0e938 Mon Sep 17 00:00:00 2001 From: Kale Worsley Date: Tue, 1 Mar 2016 15:31:42 +1300 Subject: [PATCH] Fix cookie json serialization. --- webdriver.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/webdriver.go b/webdriver.go index 638131e..2dfd997 100644 --- a/webdriver.go +++ b/webdriver.go @@ -10,7 +10,6 @@ import ( "encoding/json" "errors" "io/ioutil" - // "fmt" // "net/http" ) @@ -109,12 +108,12 @@ type WebElement struct { } type Cookie struct { - Name string - Value string - Path string - Domain string - Secure bool - Expiry int + Name string `json:"name"` + Value string `json:"value"` + Path string `json:"path"` + Domain string `json:"domain"` + Secure bool `json:"secure"` + Expiry int `json:"expiry"` } type GeoLocation struct {