Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created June 30, 2020 15:09
driver = new ChromeDriver();
driver.Url = "http://demos.dojotoolkit.org/dijit/tests/test_Menu.html";
IWebElement element = driver.FindElement(By.XPath("//select[@aria-label='select']"));
SelectElement select_elem = new SelectElement(element);
/* Sleep for 4 seconds after page is displayed */
System.Threading.Thread.Sleep(4000);
select_elem.DeselectByText("on IE6");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment