chaleno
chaleno copied to clipboard
Get Element by Id not defined following examples in the readme
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'
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 till
getElementById`` 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