public override void Act() { var element = driverScope.Now(); // In Firefox, scrolling to an element in firefox is broken. // Bug: https://github.com/mozilla/geckodriver/issues/901 if (driverScope.Browser == Browser.Firefox) { Driver.ExecuteScript("window.scrollTo(0, document.body.scrollHeight);", driverScope); } Driver.Hover(element); }
public void Stale_window_closed() { Driver.Click(Driver.FindLink("Open pop up window", Root)); var popUpScope = new DriverScope(new SessionConfiguration(), new WindowFinder(Driver, "Pop Up Window", Root), Driver, null, null, null); var popUpWindow = popUpScope.Now(); popUpWindow.Stale(new Options()).should_be_false(); Driver.Click(Driver.FindButton("close", popUpScope)); popUpWindow.Stale(new Options()).should_be_true(); }
public void Stale_window_closed() { Driver.Click(Link("Open pop up window")); var popUpScope = new DriverScope(DefaultSessionConfiguration, new WindowFinder(Driver, "Pop Up Window", Root, DefaultOptions), Driver, null, null, null, DisambiguationStrategy ); var popUpWindow = popUpScope.Now(); popUpWindow.Stale(new Options()).should_be_false(); Driver.Click(Button("close", popUpScope, DefaultOptions)); popUpWindow.Stale(new Options()).should_be_true(); }
public void Stale_window_closed() { Driver.Click(Link("Open pop up window")); var popUpScope = new DriverScope(DefaultSessionConfiguration, new WindowFinder(Driver, "Pop Up Window", Root, DefaultOptions), Driver, null, null, null, DisambiguationStrategy); var popUpWindow = popUpScope.Now(); popUpWindow.Stale(new Options()).should_be_false(); Driver.Click(Button("close", popUpScope, DefaultOptions)); popUpWindow.Stale(new Options()).should_be_true(); }
public override void Act() { var element = driverScope.Now(); Driver.Click(element); }
public override void Act() { var element = driverScope.Now(); Driver.SendKeys(element, keys); }
public override void Act() { var element = _driverScope.Now(); Driver.Hover(element); }