Skip to content

Commit

Permalink
un-break CDP
Browse files Browse the repository at this point in the history
  • Loading branch information
teodesian committed Apr 13, 2024
1 parent fa5d471 commit 46e66f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example.pl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
print "done\n";

#XXX not clear that this doesn't want an http uri instead? idk
my $handle = Playwright->new( debug => 1, cdp_uri => "ws://127.0.0.1:$port" );
my $handle = Playwright->new( debug => 1, cdp_uri => "http://127.0.0.1:$port" );

# Open a new chrome instance
my $browser = $handle->launch( headless => 1, type => 'chrome' );
Expand Down
2 changes: 1 addition & 1 deletion lib/Playwright.pm
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ sub _start_server ( $port, $cdp_uri, $timeout, $debug, $cleanup ) {
}

push(@args, ( "--port", $port ));
push(@args, "--cdp", qq{"$cdp_uri"}) if $cdp_uri;
push(@args, "--cdp", $cdp_uri) if $cdp_uri;
push(@args, $debug) if $debug;

$ENV{DEBUG} = 'pw:api' if $debug;
Expand Down

0 comments on commit 46e66f8

Please sign in to comment.