Scripts:
IWebDriver ie = new InternetExplorerDriver();
IWebDriver ff = new FirefoxDriver();
string baseURL = "http://xxxxxxxxxxxx";
ISelenium iesele = new WebDriverBackedSelenium(ie, baseURL);
ISelenium ffsele = new WebDriverBackedSelenium(ff, baseURL);
The page of baseURL has 2 frames and the upper frame is a warning page, and I want to select "Agree" then Click on "OK" to close it. Scripts of IE doesn't work, can discover the object of the checkbox and button, but "Select" and "Click" doesn't work. But under Firefox, it works, the upper frame was closed successfully. Script: IE
iesele.Start();
iesele.Open(baseURL);
iesele.SelectFrame("UpperFrame");
iesele.FindElement(By.Name("agree")).Click();
iesele.FindElement(By.CssSelector("ok")).Click();
Firefox
ffsele.Start();
ffsele.Open(baseURL);
ffsele.SelectFrame("UpperFrame");
ffsele.FindElement(By.Name("agree")).Click();
ffsele.FindElement(By.CssSelector("ok")).Click();
Does anyone know why IE cannot execute this script correctly? Should I set something of IE8 ?
thanks