Chrome:...rt::Mojo(3)
β¨ NAME β¨
Chrome::DevToolsProtocol::Transport::Mojo β the Mojolicious backend for talking to Chrome π
(also hi bestie, this is part of the User Contributed Perl Documentation situation, and the page is literally called Chrome:...rt::Mojo(3), so now you know what you're looking at π)
πΈ SYNOPSIS πΈ
my $got_endpoint = Future->done( "ws://..." );
my $t = Chrome::DevToolsProtocol::Transport::Mojo->new;
$t->connect( $handler, $got_endpoint, $logger)
->then(sub {
my( $connection ) = @_;
print "We are connected\n";
});
okay so literally: you make a Future that's already done with some ws://... endpoint, you spin up a new transport with Chrome::DevToolsProtocol::Transport::Mojo->new, and then you connect with your $handler, $got_endpoint and $logger. Then you chain a ->then(sub { ... }) and when it fires you get handed the $connection and you print "We are connected\n" like the main character you are. slay π
π "$transport->sleep( $seconds )"
$transport->sleep( 10 )->get; # wait for 10 seconds
Returns a Future that will be resolved in the number of seconds given. so like, it's not blocking, it's giving patience but make it asynchronous β¨
π¦ REQUIRED ADDITIONAL MODULES π¦
not me having to break it to you: this module needs extra modules that are not installed by the default installation of WWW::Mechanize::Chrome π
Mojo::UserAgentFuture::Mojo
go install them bestie, it's giving necessary π¦
π REPOSITORY π
The public repository of this module is <https://github.com/Corion/www-mechanize-chrome>. that's the spot, iykyk π₯
π SUPPORT π
The public support forum of this module is <https://perlmonks.org/>. the monks are lowkey iconic π§
π BUG TRACKER π
Please report bugs in this module via the Github bug queue at <https://github.com/Corion/WWW-Mechanize-Chrome/issues> π found a bug? tell the queue, not me, fr fr
π AUTHOR π
Max Maischein "corion@cpan.org" π«
π COPYRIGHT (c) π
Copyright 2010-2026 by Max Maischein "corion@cpan.org".
β LICENSE β
This module is released under the same terms as Perl itself. periodt π
and that's the whole page bestie π«Ά go forth and transport your Chrome DevTools Protocol messages in Mojolicious-flavoured style β¨
kisses, this was perl v5.42.2, dated 2026-06-07, straight outta Chrome:...rt::Mojo(3) π
π¦ where this page comes from
- fedora 43: perl-WWW-Mechanize-Chrome 0.78-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-WWW-Mechanize-Chrome 0.78-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms