Created
July 15, 2020 15:39
-
-
Save angelovstanton/423f170abc28c6e1ed9ffc631382d695 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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