Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Add timeout to Goto
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Aug 12, 2022
1 parent fac54bd commit 3ea0c25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/frame_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ func TestWaitForFrameNavigationWithinDocument(t *testing.T) {
tb := newTestBrowser(t, withFileServer())
p := tb.NewPage(nil)

resp := p.Goto(tb.staticURL("/nav_in_doc.html"), nil)
resp := p.Goto(tb.staticURL("/nav_in_doc.html"), tb.toGojaValue(&common.FrameGotoOptions{
WaitUntil: common.LifecycleEventNetworkIdle,
Timeout: timeout, // interpreted as ms
}))
require.NotNil(t, resp)

// Callbacks that are initiated internally by click and WaitForNavigation
Expand Down

0 comments on commit 3ea0c25

Please sign in to comment.