Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MinChromeVersion minimize version allowed chrome headless
MinChromeVersion = "59"
)
Variables ¶
View Source
var ( // DefaultChromPaths posible chrome paths DefaultChromPaths = []string{ "/usr/bin/chromium-browser", "/usr/bin/chromium", "/usr/bin/google-chrome-stable", "/usr/bin/google-chrome", "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary", "/Applications/Chromium.app/Contents/MacOS/Chromium", "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"} // DefaultChromeHeight default height value of chrome brower DefaultChromeHeight = 1200 // DefaultChromeWidth default width value of chrome brower DefaultChromeWidth = 720 // DefaultTimeout default timeout DefaultTimeout = 3 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Chrome ¶
type Chrome struct {
// contains filtered or unexported fields
}
Chrome contains information about a Google Chrome instance, with methods to run on it.
func (Chrome) Resolution ¶
Resolution returns chrome's resolution
func (Chrome) Screenshoot ¶
Screenshoot takes a screenshot by the given website url
func (*Chrome) SetTimeout ¶
SetTimeout set chrome's timeout
Click to show internal directories.
Click to hide internal directories.