forked from fedesog/webdriver
-
Notifications
You must be signed in to change notification settings - Fork 2
/
doc.go
30 lines (29 loc) · 884 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2013 Federico Sogaro. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The package implementation a WebDriver that communicate with a browser
// using the JSON Wire Protocol.
//
// See https://code.google.com/p/selenium/wiki/JsonWireProtocol
//
// Example:
// chromeDriver := webdriver.NewChromeDriver("/path/to/chromedriver")
// err := chromeDriver.Start()
// if err != nil {
// log.Println(err)
// }
// desired := webdriver.Capabilities{"Platform": "Linux"}
// required := webdriver.Capabilities{}
// session, err := chromeDriver.NewSession(desired, required)
// if err != nil {
// log.Println(err)
// }
// err = session.Url("http://golang.org")
// if err != nil {
// log.Println(err)
// }
// time.Sleep(60 * time.Second)
// session.Delete()
// chromeDriver.Stop()
//
package webdriver