示例#1
0
        public void MultiBrowserInstanceSuppprt()
        {
            Browser firefox = manager.ActiveBrowser;

            manager.ActiveBrowser.NavigateTo(
                "http://automatetheplanet.com/healthy-diet-menu-generator/");

            manager.LaunchNewBrowser(BrowserType.InternetExplorer, true);
            Browser internetExplorer = manager.ActiveBrowser;

            internetExplorer.NavigateTo(
                "http://automatetheplanet.com/healthy-diet-menu-generator/");

            HtmlInputRadioButton coffeeRadioButton = firefox.Find.ByExpression <HtmlInputRadioButton>("value=^1 x Trenta");

            coffeeRadioButton.ScrollToVisible(ScrollToVisibleType.ElementTopAtWindowTop);

            Browser firefox2 = manager.Browsers[0];

            firefox2.Window.SetFocus();

            internetExplorer.Window.SetFocus();

            firefox.Close(40);
        }
示例#2
0
        /// <summary>
        /// Select external url option
        /// </summary>
        public void SelectExternalUrlOption()
        {
            HtmlInputRadioButton selectExternalUrl = EM.Card.CardEditScreen.ExternalURLRadioButton.AssertIsPresent("External url");

            selectExternalUrl.ScrollToVisible();
            selectExternalUrl.Focus();
            selectExternalUrl.MouseClick();
        }
示例#3
0
        public void ScrollToVisible()
        {
            manager.ActiveBrowser.NavigateTo(
                "http://automatetheplanet.com/healthy-diet-menu-generator/");
            HtmlInputRadioButton coffeeRadioButton =
                manager.ActiveBrowser.Find.ByExpression <HtmlInputRadioButton>("value=^1 x Trenta");

            coffeeRadioButton.ScrollToVisible(ScrollToVisibleType.ElementTopAtWindowTop);
        }