1
我訂閱了WebDriver的Navigated和Navigating事件,但事件未被觸發。如果他們不工作,他們有什麼用?爲了讓他們觸發,我還需要做些額外的事情嗎?導航/導航事件在PhantomJS中不起作用WebDriver
_driver = new PhantomJSDriver();
EventFiringWebDriver eventDriver = new EventFiringWebDriver(_driver);
eventDriver.Navigating += navigatedHandler;
_driver.Navigate().GoToUrl(yt);
private void navigatedHandler(object sender, WebDriverNavigationEventArgs args)
{
MessageBox.Show("navigating");
}