FluentAutomation
FluentAutomation copied to clipboard
ScriptCS example error
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.
What version of scriptcs are you using? Its been awhile since I've looked at that integration.
Latest one 0.15.0
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);
});