Example #1
0
        private void enterUrl(string url)
        {
            StartSeChromeCommand cmdlet0 =
                //new StartSeChromeCommandTestFixture();
                WebDriverFactory.Container.Resolve <StartSeChromeCommand>();
            SeStartChromeCommand command0 =
                new SeStartChromeCommand(cmdlet0);

            command0.Execute();

            EnterSeUrlCommand cmdlet1 =
                //new EnterSeURLCommandTestFixture();
                WebDriverFactory.Container.Resolve <EnterSeUrlCommand>();

            cmdlet1.InputObject =
                //new FakeWebDriver[]{ (CommonCmdletBase.UnitTestOutput[0] as FakeWebDriver) };
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            cmdlet1.Url = url;
            SeEnterUrlCommand command1 =
                new SeEnterUrlCommand(cmdlet1);

            command1.Execute();

            ReadSeWebDriverPageSourceCommand cmdlet2 =
                //new ReadSeWebDriverPageSourceCommandTestFixture();
                WebDriverFactory.Container.Resolve <ReadSeWebDriverPageSourceCommand>();

            cmdlet2.InputObject =
                //new FakeWebDriver[]{ (CommonCmdletBase.UnitTestOutput[1] as FakeWebDriver) };
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            SeReadWebDriverPageSourceCommand command2 =
                new SeReadWebDriverPageSourceCommand(cmdlet2);

            command2.Execute();
        }
Example #2
0
 protected override void ProcessRecord()
 {
     CheckInputWebDriver(true);
     
     var command =
         new SeEnterUrlCommand(this);
     command.Execute();
     //SeHelper.NavigateTo(this, this.InputObject, this.URL);
 }
        protected override void ProcessRecord()
        {
            CheckInputWebDriver(true);

            var command =
                new SeEnterUrlCommand(this);

            command.Execute();
            //SeHelper.NavigateTo(this, this.InputObject, this.URL);
        }
        private void enterUrl(string firstUrl, string secondUrl)
        {
            StartSeChromeCommand cmdlet0 =
                WebDriverFactory.Container.Resolve <StartSeChromeCommand>();
            SeStartChromeCommand command0 =
                new SeStartChromeCommand(cmdlet0);

            command0.Execute();

            EnterSeUrlCommand cmdlet1 =
                WebDriverFactory.Container.Resolve <EnterSeUrlCommand>();

            cmdlet1.InputObject =
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            cmdlet1.Url = firstUrl;
            SeEnterUrlCommand command1 =
                new SeEnterUrlCommand(cmdlet1);

            command1.Execute();

            EnterSeUrlCommand cmdlet2 =
                WebDriverFactory.Container.Resolve <EnterSeUrlCommand>();

            cmdlet2.InputObject =
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            cmdlet2.Url = secondUrl;
            SeEnterUrlCommand command2 =
                new SeEnterUrlCommand(cmdlet2);

            command2.Execute();

            InvokeSeNavigateBackCommand cmdlet3 =
                WebDriverFactory.Container.Resolve <InvokeSeNavigateBackCommand>();

            cmdlet3.InputObject =
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            SeInvokeNavigateBackCommand command3 =
                new SeInvokeNavigateBackCommand(cmdlet3);

            command3.Execute();

            InvokeSeNavigateForwardCommand cmdlet4 =
                WebDriverFactory.Container.Resolve <InvokeSeNavigateForwardCommand>();

            cmdlet4.InputObject =
                new FakeWebDriver[] { ((FakeWebDriver)(object)PSTestLib.UnitTestOutput.LastOutput[0]) };
            SeInvokeNavigateForwardCommand command4 =
                new SeInvokeNavigateForwardCommand(cmdlet4);

            command4.Execute();
        }