chaleno icon indicating copy to clipboard operation
chaleno copied to clipboard

Get Element by Id not defined following examples in the readme

Open danchengash opened this issue 3 years ago • 1 comments

Using the examples given in the read me file am getting this error

The method 'getElementById' isn't defined for the type 'Future'. Try correcting the name to the name of an existing method, or defining a method named 'getElementById'

danchengash avatar Jan 16 '22 10:01 danchengash

Hey @Genialngash thanks for report this for us

can you please share how are you implementing this ? I mean the full code from the ```chalenoinstance tillgetElementById`` call

here's a little example how to follow:

    final url = 'https://example.com';
    var response = await Chaleno().load(url);

    title = response?.getElementById('title').text;
    print(title);

We released a new version and we updated the README example, you can check it here

antonio-nicolau avatar Jan 17 '22 20:01 antonio-nicolau