/// <summary> /// Switches to the element that currently has the focus, or the body element if /// no element with focus can be detected. /// <returns>An OpenQA.Selenium.IWebElement instance representing the element with the focus, /// or the body element if no element with focus can be detected.</returns> public IWebElement ActiveElement() { return(driver.FindElement(MockBy.Positive())); }
public static IWebElement GetRandomStale(MockWebDriver parent) { // fetch elements >> return first or null return(RandomElement(parent, 95, () => parent.FindElement(MockBy.Stale()))); }