Created
November 19, 2018 17:37
-
-
Save angelovstanton/1edd8f4b8eee02ef10cefb16b7f6169e to your computer and use it in GitHub Desktop.
This file contains 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 LocatingElementInsideAnotherElementTest() | |
{ | |
var mainElement = _driver.FindElementById("decor_content_parent"); | |
var button = mainElement.FindElementById("button"); | |
button.Click(); | |
var checkBox = mainElement.FindElementByClassName("android.widget.CheckBox"); | |
checkBox.Click(); | |
var thirdButton = mainElement.FindElementByXPath("//*[@resource-id='com.example.android.apis:id/button']"); | |
thirdButton.Click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment