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
//This method selects any child from a viewgroup i.e: Chipgroup | |
private fun nthChildOf(parentMatcher: Matcher<View>, childPosition: Int): Matcher<View> { | |
return object : TypeSafeMatcher<View>() { | |
override fun describeTo(description: Description) { | |
description.appendText("position $childPosition of parent ") | |
parentMatcher.describeTo(description) | |
} | |
public override fun matchesSafely(view: View): Boolean { |
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
private fun customScroll(): ViewAction { | |
return object : ViewAction { | |
override fun getDescription(): String? { | |
return null | |
} | |
override fun getConstraints(): Matcher<View> { | |
return CoreMatchers.allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE), isDescendantOfA(anyOf( | |
isAssignableFrom(ScrollView::class.java), | |
isAssignableFrom(HorizontalScrollView::class.java), |
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
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
NewerOlder