Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ScriptCS example error #163

Open
viktor-evdokimov opened this issue Mar 15, 2016 · 3 comments
Open

ScriptCS example error #163

viktor-evdokimov opened this issue Mar 15, 2016 · 3 comments

Comments

@viktor-evdokimov
Copy link

Trying to do scriptcs example, getting this in console when running:

    ERROR: Script compilation failed. [CompilationErrorException] ...test.csx(1,12): 
    error CS0411: The type arguments for method 'ScriptCs.ScriptHost.Require<T>()' 
    cannot be inferred from the usage. Try specifying the type arguments explicitly.
@stirno
Copy link
Owner

stirno commented Mar 16, 2016

What version of scriptcs are you using? Its been awhile since I've looked at that integration.

@viktor-evdokimov
Copy link
Author

Latest one 0.15.0

@kevinrood
Copy link

The example shown here is out of date and needs to be updated to match the example here:

var Test = Require<F14N>()  
    .Init<FluentAutomation.SeleniumWebDriver>()
    .Bootstrap("Chrome")
    .Config(settings => {
        // Easy access to FluentAutomation.Settings values
        settings.DefaultWaitUntilTimeout = TimeSpan.FromSeconds(1);
    });

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants