This repository was archived by the owner on Jan 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Add page.on
#1006
Merged
Merged
Add page.on
#1006
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
94f312e
Add ConsoleMessage
ka3de a8ef0b4
Add `page.on` method
ka3de ab4594b
Add page.onConsoleAPICalled
ka3de faaea47
Remove nolint:unused for executionContextForID
ka3de 9f30db6
Add k6-taskqueue-lib dependency
ka3de 9e53e88
Use TaskQueue to sync event handlers execution
ka3de 659100c
Add page.on() test
ka3de 774722e
Add mapping for ConsoleMessage
ka3de 5091986
Expose page.on
ka3de 4d7f693
Add page.on test example
ka3de bb4a1f6
Initialize TaskQueue only when page.on() is called
ka3de File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package api | ||
|
||
// ConsoleMessage represents a page console message. | ||
type ConsoleMessage struct { | ||
// Args represent the list of arguments passed to a console function call. | ||
Args []JSHandle | ||
|
||
// Page is the page that produced the console message, if any. | ||
Page Page | ||
|
||
// Text represents the text of the console message. | ||
Text string | ||
|
||
// Type is the type of the console message. | ||
// It can be one of 'log', 'debug', 'info', 'error', 'warning', 'dir', 'dirxml', | ||
// 'table', 'trace', 'clear', 'startGroup', 'startGroupCollapsed', 'endGroup', | ||
// 'assert', 'profile', 'profileEnd', 'count', 'timeEnd'. | ||
Type string | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.