Skip to content

Instantly share code, notes, and snippets.

@jimevans
Created October 31, 2011 19:24
Show Gist options
  • Save jimevans/1328578 to your computer and use it in GitHub Desktop.
Save jimevans/1328578 to your computer and use it in GitHub Desktop.
// Assume driver is a valid IWebDriver instance.
IWebElement buttonsetElement = driver.FindElement(By.ClassName("ui-dialog-buttonset");
IList<IWebElement> buttons = buttonsetElement.FindElements(By.TagName("button"));
buttons[0].Click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment