public void BySemanticsLabel() { // Text FlutterDriver.Click(FlutterBy.SemanticsLabel("FUT: FlutterBy.SemanticsLabel (Increment 4)")); AssertCounterIs("4", because: "we pressed the Semantics Label button"); }
public void ByTooltip() { // Text FlutterDriver.Click(FlutterBy.Tooltip("FUT: FlutterBy.Tooltip (Increment 3)")); AssertCounterIs("3", because: "we pressed the Add+3 button"); }
public void ByType() { // Text FlutterDriver.Click(FlutterBy.Type("FlatButton")); AssertCounterIs("-4", because: "we pressed the Add button (Flat Button)"); }
public void ByText() { // Text FlutterDriver.Click(FlutterBy.Text("FUT: FlutterBy.Text (Increment 1)")); AssertCounterIs("1", because: "we pressed the Add+1 button"); }
public void ByValueKey() { // Text FlutterDriver.Click(FlutterBy.ValueKey("FUT: FlutterBy.ValueKey (Increment 2)")); AssertCounterIs("2", because: "we pressed the Add+2 button"); }
public void NavigateToTextTestPage() { FlutterDriver.Click(FlutterBy.Text("Navigate to Taps Test Page")); FlutterDriver.WaitFor(FlutterBy.Text("Taps Page")); FlutterDriver.GetText(FlutterBy.ValueKey("tapCounter")).Should().Be("0", because: "the counter is initially 0"); }
public void NavigateToFindersPage() { FlutterDriver.Click(FlutterBy.Text("Navigate to Finders and Position Test Page")); }
public void NavigateToPageback() { FlutterDriver.Click(FlutterBy.Text("Navigate to Finders and Position Test Page")); FlutterDriver.WaitForAbsent(FlutterBy.Text("Navigate to Finders and Position Test Page")); }
public void PageBack() { FlutterDriver.Click(FlutterBy.PageBack()); FlutterDriver.WaitFor(FlutterBy.Text("Navigate to Finders and Position Test Page")); }
public void NavigateToTextTestPage() { FlutterDriver.Click(FlutterBy.Text("Navigate to Text Fields Test Page")); FlutterDriver.WaitFor(TextFieldControl); }