public static void RunScript(this FluentAutomation.Interfaces.INativeActionSyntaxProvider I, string comboName, string itemText) { string scriptStr = "var i = {0}.FindItemByText('{1}');{0}.SetValue(i.value);"; string script = string.Format(scriptStr, comboName, itemText); I.RunScript(script); }
private void Dispose(bool disposing) { if (disposing) { if (this.I != null) { this.I.Dispose(); this.I = null; } if (this.FluentTest != null) { this.FluentTest.Dispose(); this.FluentTest = null; } } }
public static void RunScript(this FluentAutomation.Interfaces.INativeActionSyntaxProvider I, string scriptCode) { // ReSharper disable UnusedVariable var element = I.Find("body").Invoke() as FluentAutomation.Element; // ReSharper restore UnusedVariable }
public PageBase() { SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome); this.FluentTest = new FluentTest(); this.I = this.FluentTest.I; }