综上所述,我想要做的是“开放”的网页driver.Navigate().GoToUrl("http://somepage.com")
然后立即块从"http://somepage.com/something.asmx/GetStuff"
的响应,这样我可以证实,一些元素有一定的在加载响应之前的类:driver.FindElement(By.CssSelector("buttom.some-button")).GetAttribute("class").Contains("disabled")
,然后是disabled
。如何“块”的Ajax响应使用Selenium
是这样的可能,如果是这样,我怎么做呢?
我的问题是在什么它试图实现类似Selenium Webdriver c# without waiting for page to load。
我不认为你可以使用Selenium为,但FiddlerCore配对应该是可行的 - http://stackoverflow.com/questions/25541499/how-to-capture-http-request-using-fiddlercore-在-C/26323323#26323323 –