teodesian / playwright-perl

Perl bindings for playwright
MIT License
22 stars 4 forks source link

$result->text() stopped working #59

Closed noppel closed 9 months ago

noppel commented 9 months ago

Some code that was working

my $async = $page->waitForEvent('console');
$page->evaluate('console.log(navigator.userAgent)');
my $result = $handle->await( $async );
my $logged = $result->text();

Is no longer working (Can't call method "text" on unblessed reference).

teodesian commented 9 months ago

Apologies for the delay in response.

The data structure underlying has changed unexpectedly, and was not advertised by playwright's specification JSON. As such the response failed to be objectified correctly.

I'll have to put in a hack to make this work.