Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created July 15, 2020 15:39
Show Gist options
  • Save angelovstanton/423f170abc28c6e1ed9ffc631382d695 to your computer and use it in GitHub Desktop.
Save angelovstanton/423f170abc28c6e1ed9ffc631382d695 to your computer and use it in GitHub Desktop.
[TestMethod]
public void PerformActionsButtons()
{
By byScrollLocator = new ByAndroidUIAutomator("new UiSelector().text(\"Views\");");
var viewsButton = _driver.FindElement(byScrollLocator);
viewsButton.Click();
var controlsViewButton = _driver.FindElementByXPath("//*[@text='Controls']");
controlsViewButton.Click();
var lightThemeButton = _driver.FindElementByXPath("//*[@text='1. Light Theme']");
lightThemeButton.Click();
var saveButton = _driver.FindElementByXPath("//*[@text='Save']");
Assert.IsTrue(saveButton.Enabled);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment