Exemple #1
0
        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);
        }
Exemple #2
0
        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;
                }
            }
        }
Exemple #3
0
        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;
                }
            }
        }
Exemple #4
0
 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
 }
Exemple #5
0
 public PageBase()
 {
     SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome);
     this.FluentTest = new FluentTest();
     this.I          = this.FluentTest.I;
 }