You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import 'package:puppeteer/puppeteer.dart';
void main() async {
// Download the Chromium binaries, launch it and connect to the "DevTools"
var browser = await puppeteer.launch();
// Open a new tab
var myPage = await browser.newPage();
// Go to a page and wait to be fully loaded
await myPage.goto('https://www.github.com', wait: Until.networkIdle);
// Do something... See other examples
await myPage.screenshot();
// await myPage.pdf();
await myPage.evaluate('() => document.title');
// Gracefully close the browser's process
await browser.close();
}
and I am getting this exception:
Unhandled exception:
Exception: Websocket url not found
#0 _waitForWebSocketUrl (package:puppeteer/src/puppeteer.dart:311:3)
<asynchronous suspension>
#1 Puppeteer.launch (package:puppeteer/src/puppeteer.dart:170:30)
<asynchronous suspension>
#2 main (file:///D:/project/IOT-KT/dl/puppy1/test/puppy1_test.dart:8:33)
#3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:307:19)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
The text was updated successfully, but these errors were encountered:
I am trying to run this code from the example:
and I am getting this exception:
The text was updated successfully, but these errors were encountered: