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); }
/// <summary> /// Select external url option /// </summary> public void SelectExternalUrlOption() { HtmlInputRadioButton selectExternalUrl = EM.Card.CardEditScreen.ExternalURLRadioButton.AssertIsPresent("External url"); selectExternalUrl.ScrollToVisible(); selectExternalUrl.Focus(); selectExternalUrl.MouseClick(); }
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); }