Scott Hanselmans のブログ投稿を読んで、scriptcs + FluentAutomation を動作させようとしています: http://www.hanselman.com/blog/NuGetPackageOfTheWeekFluentAutomationForAutomatedTestingOfWebApplications.aspx
問題は、流暢な自動化 Web サイトのデモ コードが機能しないことです。
http://fluent.stirno.com/docs/#scriptcs
Scotts ブログのコードはより近いですが、まだありません。
これは例えば:
var Test = Require<F14N>()
.Init<FluentAutomation.SeleniumWebDriver>()
.Bootstrap("Chrome")
.Config(settings => {
// Easy access to FluentAutomation.Settings values
settings.DefaultWaitUntilTimeout = TimeSpan.FromSeconds(1);
});
Test.Run("Hello Google", I => {
I.Open(http://google.com);
});
これをもたらします:
--------------------------------------------------------------------------
F14N - Fluent Automation Console
-------------------------------------------------------------------------
1) Hello Google
----------------------------------------------------------------------
Unable to resolve type: OpenQA.Selenium.IWebDriver
--------
An unexpected exception was thrown inside WaitUntil(Action). See
InnerException for details.
at FluentAutomation.BaseCommandProvider.<>c__DisplayClass9.<WaitUnt
il>b__8()
at FluentAutomation.BaseCommandProvider.Act(CommandType commandType
, Action action)
at FluentAutomation.BaseCommandProvider.WaitUntil(Expression`1 cond
itionAction, TimeSpan timeout)
at FluentAutomation.BaseCommandProvider.Act(CommandType commandType
, Action action)
at FluentAutomation.CommandProvider.Navigate(Uri url)
at FluentAutomation.ActionSyntaxProvider.Open(Uri url)
at FluentAutomation.ActionSyntaxProvider.Open(String url)
at Submission#0.<.ctor>b__2(IActionSyntaxProvider I)
at ScriptCs.FluentAutomation.F14N.Run(String name, Action`1 action)
----------------------------------------------------------------------
誰かがこれを機能させましたか?scriptcs を使用してこれらの仕様を構築することに非常に興味があります。