public WebElementSource Get(IWebElement e) { if (WebElementSources.TryGetValue(e, out var value)) { return(value); } return (null); }
public void Add(IWebElement e, string page, By by) { var o = -1; lock (this) o = Order++; WebElementSources.TryAdd(e, new WebElementSource(page, by, o)); }