Adding IWrapsDriver to EventFiringWebElement
@@ -1169,7 +1169,7 @@ public TimeSpan PageLoad
/// <summary>
/// EventFiringWebElement allows you to have access to specific items that are found on the page
/// </summary>
- private class EventFiringWebElement : IWebElement, IWrapsElement
+ private class EventFiringWebElement : IWebElement, IWrapsElement, IWrapsDriver
{
private IWebElement underlyingElement;
private EventFiringWebDriver parentDriver;
@@ -1193,6 +1193,14 @@ public IWebElement WrappedElement
get { return this.underlyingElement; }
}
+ /// <summary>
+ /// Gets the underlying parent wrapped <see cref="IWebDriver"/>
+ /// </summary>
+ public IWebDriver WrappedDriver
+ {
+ get { return this.parentDriver; }
+ }
+
/// <summary>
/// Gets the DOM Tag of element
/// </summary>
