This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FluentAutomation; | |
using FluentAutomation.Interfaces; | |
using System; | |
using System.IO; | |
using System.Reflection; | |
private static INativeActionSyntaxProvider I = null; | |
public static void Bootstrap<T>(string browserName) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace FluentAutomation.Tests | |
{ | |
public class BingSearchPage : PageObject<BingSearchPage> | |
{ | |
public BingSearchPage(FluentTest test) | |
: base(test) | |
{ | |
Url = "http://bing.com/"; | |
At = () => I.Expect.Exists(SearchInput); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
contactEmail: 'support@datinix.net', | |
primaryIP: '72.232.233.254', | |
ttl: '14400', | |
refresh: '28800', | |
retry: '7200', | |
expire: '1209600', | |
minttl: '86400', | |
primaryNS: 'ns1.dtnxdns.net', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
teststeps = [ | |
{ | |
:name => "Open", | |
:arguments => { | |
:url => "http://www.google.com/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Open", | |
"arguments": { | |
"url": "http://www.google.com/" | |
} | |
}, | |
{ | |
"name": "Enter", | |
"arguments": { | |
"value": "Fluent Automation", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Browser: "Firefox", | |
Steps: [ | |
{ | |
Command: "Open", | |
Arguments: [ | |
URL: "http://www.google.com/" | |
] | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"GroupObjects": [ | |
{ | |
"Id": 1, | |
"ValueIds": [ | |
1, | |
2, | |
3 | |
], | |
"ImportantIds": [ |
NewerOlder