######Multi-browser support with I.Find
Change from Func<Element> to ElementProxy
######New configuration syntax
Config
[TestClass] | |
public class AcceptanceTest1 : FluentAutomation.FluentTest<OpenQA.Selenium.IWebDriver> | |
{ | |
public AcceptanceTest1() | |
{ | |
FluentAutomation.SeleniumWebDriver.Bootstrap(FluentAutomation.SeleniumWebDriver.Browser.Chrome); | |
} | |
[TestMethod] | |
public void TestMethod1() |
scriptcs -install FluentAutomation.SeleniumWebDriver | |
scriptcs -install ScriptCs.FluentAutomation |
var gulp = new Gulp(); | |
gulp.Task("Compile CSS", () => | |
{ | |
gulp.Source("*.less", "*.sass", "*.scss") | |
.Pipe("less$", new GulpLess()) | |
.Pipe("(sass|scss)$", new GulpSass()) | |
.Destination("~/bin"); | |
}); |
I.FindMultiple("div").Elements.ForEach((elementTuple) => | |
{ | |
var commandProvider = elementTuple.Item1; | |
var elementFunc = elementTuple.Item2; | |
var element = elementFunc(); | |
// do things with element | |
}); |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
width: 960px; | |
height: 500px; | |
position: relative; | |
} |
namespace DTNX.DNS.RestServices | |
{ | |
public class RestServiceBase<T, TRepository> : ServiceStack.ServiceInterface.RestServiceBase<T> where T : ModelBase where TRepository : IRepository<T> | |
{ | |
public TRepository Repository { get; set; } | |
public override object OnGet(T request) | |
{ | |
var baseRequest = request.TranslateTo<ModelBase>(); | |
if (baseRequest.Id == default(int)) |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace DTNX.DNS.DataAccess.Repositories | |
{ | |
public class RepositoryBase<T> where T : ModelBase | |
{ | |
public RepositoryBase() |
[TestClass] | |
public class LoginTests : StirnoTestDriver | |
{ | |
[TestMethod] | |
public void Login_HappyPath() | |
{ | |
I.Use(BrowserType.InternetExplorer); | |
I.Open("http://idev05/Login"); | |
// Validate expected strings on page |
using FluentAutomation.API; | |
using FluentAutomation.API.Enumerations; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace FluentAutomation.Samples | |
{ | |
/// <summary> | |
/// Fluent Automation API for the Web - http://www.stirno.com/fluentautomation | |
/// </summary> | |
[TestClass] |