-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove dedicated console channel
- Loading branch information
1 parent
cc18ec2
commit 91c28f4
Showing
4 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
API_IMPLEMENTATIONS = %w[ | ||
Accessibility | ||
AndroidInput | ||
ConsoleMessage | ||
FileChooser | ||
Keyboard | ||
Mouse | ||
|
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,29 @@ | ||
module Playwright | ||
define_api_implementation :ConsoleMessageImpl do | ||
def initialize(event) | ||
@event = event | ||
end | ||
|
||
def page | ||
@page ||= ChannelOwners::Page.from_nullable(@event['page']) | ||
end | ||
|
||
def type | ||
@event['type'] | ||
end | ||
|
||
def text | ||
@event['text'] | ||
end | ||
|
||
def args | ||
@event['args']&.map do |arg| | ||
ChannelOwner.from(arg) | ||
end | ||
end | ||
|
||
def location | ||
@event['location'] | ||
end | ||
end | ||
end |