Skip to content

Commit

Permalink
Adding IWrapsDriver to EventFiringWebElement
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Apr 11, 2019
1 parent 00ef218 commit 96b49f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dotnet/src/support/Events/EventFiringWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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>
Expand Down

0 comments on commit 96b49f5

Please sign in to comment.