FluentAutomation icon indicating copy to clipboard operation
FluentAutomation copied to clipboard

ScriptCS example error

Open viktor-evdokimov opened this issue 8 years ago • 3 comments

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.

viktor-evdokimov avatar Mar 15 '16 14:03 viktor-evdokimov

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

stirno avatar Mar 16 '16 02:03 stirno

Latest one 0.15.0

viktor-evdokimov avatar Mar 16 '16 18:03 viktor-evdokimov

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);
    });

kevinrood avatar Jul 08 '16 21:07 kevinrood