######Multi-browser support with I.Find
Change from Func<Element> to ElementProxy
######New configuration syntax
Config
license: gpl-2.0 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
width: 960px; | |
height: 500px; | |
position: relative; | |
} |
I.FindMultiple("div").Elements.ForEach((elementTuple) => | |
{ | |
var commandProvider = elementTuple.Item1; | |
var elementFunc = elementTuple.Item2; | |
var element = elementFunc(); | |
// do things with element | |
}); |
var gulp = new Gulp(); | |
gulp.Task("Compile CSS", () => | |
{ | |
gulp.Source("*.less", "*.sass", "*.scss") | |
.Pipe("less$", new GulpLess()) | |
.Pipe("(sass|scss)$", new GulpSass()) | |
.Destination("~/bin"); | |
}); |
scriptcs -install FluentAutomation.SeleniumWebDriver | |
scriptcs -install ScriptCs.FluentAutomation |
[TestClass] | |
public class AcceptanceTest1 : FluentAutomation.FluentTest<OpenQA.Selenium.IWebDriver> | |
{ | |
public AcceptanceTest1() | |
{ | |
FluentAutomation.SeleniumWebDriver.Bootstrap(FluentAutomation.SeleniumWebDriver.Browser.Chrome); | |
} | |
[TestMethod] | |
public void TestMethod1() |
namespace FluentAutomation.Tests | |
{ | |
public class BingSearchPage : PageObject<BingSearchPage> | |
{ | |
public BingSearchPage(FluentTest test) | |
: base(test) | |
{ | |
Url = "http://bing.com/"; | |
At = () => I.Expect.Exists(SearchInput); | |
} |
var execPath = this.CreateExecutionDirectory(); | |
var scriptName = Guid.NewGuid().ToString() + ".csx"; | |
var console = new ScriptConsole(); | |
var builder = new ScriptServicesBuilder(console, new Common.Logging.Simple.TraceLogger(false, "ScriptCs", Common.Logging.LogLevel.All, true, true, false, "hh:mm:ss")); | |
builder.ScriptName(scriptName).InMemory(true); | |
var services = builder.Build(); | |
var packages = services.PackageAssemblyResolver.GetPackages(execPath); |
public class ThisIsATestClass : FluentTest | |
{ | |
public ThisIsATestClass() | |
{ | |
FluentAutomation.SeleniumWebDriver.Bootstrap(FluentAutomation.SeleniumWebDriver.Browser.Chrome); | |
var containerRegistration = FluentAutomation.Settings.Registration; | |
FluentAutomation.Settings.Registration = (container) => | |
{ | |
// Call default registration method from Bootstrapper |