C# Class UITests.Extensions

ファイルを表示 Open project: xamarin/mini-hacks

Public Methods

Method 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

Method Description
CompareText ( string sExpected, string sActual ) : void

Method Details

EnterText() public static method

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

GetHeightWidth() public static method

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

IsItThere() public static method

public static IsItThere ( this app, AppQuery>.Func lambda ) : bool
app this
lambda AppQuery>.Func
return bool

IsItThere() public static method

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

IsTextDifferent() public static method

public static IsTextDifferent ( string oldText, string newText ) : bool
oldText string
newText string
return bool

Screenshot() public static method

public static Screenshot ( this app, string screenShotText ) : void
app this
screenShotText string
return void

ScrollDownAndTap() public static method

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

ScrollDownAndTap() public static method

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

ScrollDownEnough() public static method

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
return AppResult[]

Tap() public static method

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

Tap() public static method

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

ToString() public static method

public static ToString ( this result, bool repl ) : string
result this
repl bool
return string

WaitFor() public static method

public static WaitFor ( this app, AppQuery>.Func lambda ) : void
app this
lambda AppQuery>.Func
return void

WaitForThenClearText() public static method

public static WaitForThenClearText ( this app, AppQuery>.Func lambda ) : void
app this
lambda AppQuery>.Func
return void

WaitForThenEnterText() public static method

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

WaitForThenGetTextOfIndexAndCompare() public static method

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
return void

WaitForThenTap() public static method

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

WaitThenEnterText() public static method

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

WaitThenTap() public static method

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

WaitThenTap() public static method

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

WaitThenTapIfExists() public static method

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