29599dd7cd
Change-Id: Ibeaee92e6d1a41e408659a5045f52e1908f73089
16 lines
321 B
Go
16 lines
321 B
Go
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package multinode
|
|
|
|
import (
|
|
"github.com/go-rod/rod"
|
|
)
|
|
|
|
func openPage(browser *rod.Browser, url string) *rod.Page {
|
|
page := browser.MustPage()
|
|
page.MustSetViewport(1350, 600, 1, false)
|
|
page.MustNavigate(url).MustWaitLoad()
|
|
return page
|
|
}
|