######Multi-browser support with I.Find
Change from Func<Element> to ElementProxy
######New configuration syntax
Config
[TestMethod] | |
public void CartEditor_AddDelete() | |
{ | |
I.Use(BrowserType.InternetExplorer); | |
I.Open("http://knockoutjs.com/examples/cartEditor.html"); | |
I.Select(2).From("#cartEditor tr select:eq(0)"); | |
I.Select(2).From("#cartEditor tr select:eq(1)"); | |
I.Enter(6).In("#cartEditor td.quantity input:eq(0)"); | |
I.Expect.This("$197.70").In("#cartEditor tr span:eq(1)"); |
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] |
[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 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() |
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)) |
<!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 |