1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/drivers/params.go
Tim Voronov 63201148ac
Added possibility to set custom viewport size (#334)
* Added possibility to set custom viewport size

* Fixed linting issue

* Renamed ScreenSize to Viewport

* Updated e2e test
2019-07-17 13:29:16 -04:00

21 lines
302 B
Go

package drivers
type (
Viewport struct {
Height int
Width int
ScaleFactor float64
Mobile bool
Landscape bool
}
Params struct {
URL string
UserAgent string
KeepCookies bool
Cookies []HTTPCookie
Header HTTPHeader
Viewport *Viewport
}
)