public void ShouldEmitOnChangeEventsWhenSelectingElements()
{
driver.Url = javascriptPage;
//Intentionally not looking up the select tag. See selenium r7937 for details.
ReadOnlyCollection<IWebElement> allOptions = driver.FindElements(By.XPath("//select[@id='selector']//option"));
String initialTextValue = driver.FindElement(By.Id("result")).Text;
IWebElement foo = allOptions[0];
IWebElement bar = allOptions[1];
foo.Click();
Assert.AreEqual(driver.FindElement(By.Id("result")).Text, initialTextValue);
bar.Click();
Assert.AreEqual(driver.FindElement(By.Id("result")).Text, "bar");
}