dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 63 forks source link

querySelectorAll works at browser, but not in code #66

Closed danPyk closed 2 years ago

danPyk commented 2 years ago

Edit: nevermind, the problem was with captchta.

When I'm using console it gives me data: 2022-06-27_11h45_59

but when I'm trying the same with code:

 Future<List> getData() async {
     final controller = WindowController();
     await controller.openUri(Uri.parse(""));
     final  pavillionsLiElements =  controller.window?.document.querySelectorAll("td.time") ?? [];

     return pavillionsLiElements;
   }

I'm getting empty list. What am I doing wrong?