AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.
https://anglesharp.github.io
MIT License
105 stars 23 forks source link

Cannot assign void to an implicitly-typed variable for WaitUntilAvailable() extension method #61

Closed ghost closed 4 years ago

ghost commented 5 years ago

i want submit reactjs web site two step form. i wrote a code like you'r sample for test :

            var configuration = Configuration.Default
                .WithDefaultLoader()
                .WithDefaultCookies()
                .WithJs();
        var context = BrowsingContext.New(configuration);
            var queryDocument =  await context.OpenAsync("https://www.site.com/_/login?").WaitUntilAvailable();

but give me an error

Cannot assign void to an implicitly-typed variable

sample code :

var context = BrowsingContext.New(config);
var document = await context.OpenAsync(address)
    .WaitUntilAvailable();

why give me an error ?

FlorianRappl commented 4 years ago

Landed in devel.