Actions
Extension methods on Query
use the implicit App
to perform effects directly:
[Test]
public void AppLaunches()
{
Button["#signInButton"].Tap();
Cell["DataRow"][4].WaitForElement();
Entry["~Hello"].Tap();
}
Wait
and WaitUntilExists
Just like Tap
, Wait
and WaitUntilExists
are fluent query actions for easy sequencing:
// Tap the button, wait a second, then tap again.
Button["#signInButton"].Tap().Wait(1).Tap();
WaitUntilExists
is useful if the element is becoming visible but you aren't sure if it is yet:
WebView.WaitUntilExists().ScrollDownTo();