C# Class UITests.Extensions

Afficher le fichier Open project: xamarin/mini-hacks

Méthodes publiques

Méthode Description
EnterText ( this app, AppQuery>.Func lambda, string text, string screenshot ) : void
GetHeightWidth ( this app, AppQuery>.Func query, int &outX, int &outY ) : bool
IsItThere ( this app, AppQuery>.Func lambda ) : bool
IsItThere ( this app, AppQuery>.Func lambda, string screenShotText ) : void
IsTextDifferent ( string oldText, string newText ) : bool
Screenshot ( this app, string screenShotText ) : void
ScrollDownAndTap ( this app, AppQuery>.Func lambda = null, string screenshot = null ) : void
ScrollDownAndTap ( this app, string screenshot, AppQuery>.Func lambda = null ) : void
ScrollDownEnough ( this app, AppQuery>.Func lambda, string screenshot = null ) : AppResult[]

Incrementally scrolls down until the desired elements are found

Tap ( this app, AppQuery>.Func lambda, string screenshot ) : void
Tap ( this app, string screenshot, AppQuery>.Func lambda ) : void
ToString ( this result, bool repl ) : string
WaitFor ( this app, AppQuery>.Func lambda ) : void
WaitForThenClearText ( this app, AppQuery>.Func lambda ) : void
WaitForThenEnterText ( this app, AppQuery>.Func lambda, string text, string screenShotText ) : void
WaitForThenGetTextOfIndexAndCompare ( this app, AppQuery>.Func lambda, int index, string sExpected, string screenShotText ) : void
WaitForThenTap ( this app, AppQuery>.Func lambda, string screenShotText = null ) : void
WaitThenEnterText ( this app, AppQuery>.Func lambda, string text, string screenshot = null ) : void
WaitThenTap ( this app, AppQuery>.Func lambda, string screenshot = null, int seconds = 20 ) : void
WaitThenTap ( this app, string screenshot, AppQuery>.Func lambda, int seconds = 20 ) : void
WaitThenTapIfExists ( this app, AppQuery>.Func lambda, int timeout = 5, string screenshot = null ) : void

Private Methods

Méthode Description
CompareText ( string sExpected, string sActual ) : void

Method Details

EnterText() public static méthode

public static EnterText ( this app, AppQuery>.Func lambda, string text, string screenshot ) : void
app this
lambda AppQuery>.Func
text string
screenshot string
Résultat void

GetHeightWidth() public static méthode

public static GetHeightWidth ( this app, AppQuery>.Func query, int &outX, int &outY ) : bool
app this
query AppQuery>.Func
outX int
outY int
Résultat bool

IsItThere() public static méthode

public static IsItThere ( this app, AppQuery>.Func lambda ) : bool
app this
lambda AppQuery>.Func
Résultat bool

IsItThere() public static méthode

public static IsItThere ( this app, AppQuery>.Func lambda, string screenShotText ) : void
app this
lambda AppQuery>.Func
screenShotText string
Résultat void

IsTextDifferent() public static méthode

public static IsTextDifferent ( string oldText, string newText ) : bool
oldText string
newText string
Résultat bool

Screenshot() public static méthode

public static Screenshot ( this app, string screenShotText ) : void
app this
screenShotText string
Résultat void

ScrollDownAndTap() public static méthode

public static ScrollDownAndTap ( this app, AppQuery>.Func lambda = null, string screenshot = null ) : void
app this
lambda AppQuery>.Func
screenshot string
Résultat void

ScrollDownAndTap() public static méthode

public static ScrollDownAndTap ( this app, string screenshot, AppQuery>.Func lambda = null ) : void
app this
screenshot string
lambda AppQuery>.Func
Résultat void

ScrollDownEnough() public static méthode

Incrementally scrolls down until the desired elements are found
public static ScrollDownEnough ( this app, AppQuery>.Func lambda, string screenshot = null ) : AppResult[]
app this
lambda AppQuery>.Func
screenshot string
Résultat AppResult[]

Tap() public static méthode

public static Tap ( this app, AppQuery>.Func lambda, string screenshot ) : void
app this
lambda AppQuery>.Func
screenshot string
Résultat void

Tap() public static méthode

public static Tap ( this app, string screenshot, AppQuery>.Func lambda ) : void
app this
screenshot string
lambda AppQuery>.Func
Résultat void

ToString() public static méthode

public static ToString ( this result, bool repl ) : string
result this
repl bool
Résultat string

WaitFor() public static méthode

public static WaitFor ( this app, AppQuery>.Func lambda ) : void
app this
lambda AppQuery>.Func
Résultat void

WaitForThenClearText() public static méthode

public static WaitForThenClearText ( this app, AppQuery>.Func lambda ) : void
app this
lambda AppQuery>.Func
Résultat void

WaitForThenEnterText() public static méthode

public static WaitForThenEnterText ( this app, AppQuery>.Func lambda, string text, string screenShotText ) : void
app this
lambda AppQuery>.Func
text string
screenShotText string
Résultat void

WaitForThenGetTextOfIndexAndCompare() public static méthode

public static WaitForThenGetTextOfIndexAndCompare ( this app, AppQuery>.Func lambda, int index, string sExpected, string screenShotText ) : void
app this
lambda AppQuery>.Func
index int
sExpected string
screenShotText string
Résultat void

WaitForThenTap() public static méthode

public static WaitForThenTap ( this app, AppQuery>.Func lambda, string screenShotText = null ) : void
app this
lambda AppQuery>.Func
screenShotText string
Résultat void

WaitThenEnterText() public static méthode

public static WaitThenEnterText ( this app, AppQuery>.Func lambda, string text, string screenshot = null ) : void
app this
lambda AppQuery>.Func
text string
screenshot string
Résultat void

WaitThenTap() public static méthode

public static WaitThenTap ( this app, AppQuery>.Func lambda, string screenshot = null, int seconds = 20 ) : void
app this
lambda AppQuery>.Func
screenshot string
seconds int
Résultat void

WaitThenTap() public static méthode

public static WaitThenTap ( this app, string screenshot, AppQuery>.Func lambda, int seconds = 20 ) : void
app this
screenshot string
lambda AppQuery>.Func
seconds int
Résultat void

WaitThenTapIfExists() public static méthode

public static WaitThenTapIfExists ( this app, AppQuery>.Func lambda, int timeout = 5, string screenshot = null ) : void
app this
lambda AppQuery>.Func
timeout int
screenshot string
Résultat void