diff --git a/common.go b/common.go index 881c8a8..ba56f08 100644 --- a/common.go +++ b/common.go @@ -11,6 +11,7 @@ import ( "fmt" "io/ioutil" "net/http" + "net/url" "strconv" ) @@ -164,6 +165,10 @@ type WebDriverCore struct { url string } +func (d *WebDriverCore) SetUrl(u *url.URL) { + d.url = u.String() +} + func (w WebDriverCore) Start() error { return nil } func (w WebDriverCore) Stop() error { return nil }