Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a WebDriver Navigated event?

The .NET WebBrowser has a Navigated event. Is there a similar event for the Selenium WebDriver? I've searched but have not found anything.

like image 882
Xandarian Avatar asked Oct 02 '14 07:10

Xandarian


1 Answers

WebDriver.Support library contains an EventFiringWebDriver wrapper for the IWebDriver interface. That wrapper provides the Navigated event you are looking for.

IWebDriver yourDriver;
...
EventFiringWebDriver eventDriver = new EventFiringWebDriver(yourDriver);
eventDriver.Navigated += navigatedHandler;
like image 105
Yurii Avatar answered Oct 06 '22 13:10

Yurii