MCPcopy Create free account
hub / github.com/tebeka/selenium / SetPageLoadTimeout

Method SetPageLoadTimeout

remote.go:575–585  ·  view source on GitHub ↗
(timeout time.Duration)

Source from the content-addressed store, hash-verified

573}
574
575func (wd *remoteWD) SetPageLoadTimeout(timeout time.Duration) error {
576 if !wd.w3cCompatible {
577 return wd.voidCommand("/session/%s/timeouts", map[string]interface{}{
578 "ms": uint(timeout / time.Millisecond),
579 "type": "page load",
580 })
581 }
582 return wd.voidCommand("/session/%s/timeouts", map[string]uint{
583 "pageLoad": uint(timeout / time.Millisecond),
584 })
585}
586
587func (wd *remoteWD) Quit() error {
588 if wd.id == "" {

Callers

nothing calls this directly

Calls 1

voidCommandMethod · 0.95

Tested by

no test coverage detected