public void TapCrashButton() { //Arrange //Act WeatherPage.TapForecastTab(); ForecastPage.TapCrashButton(); //Assert }
void ToggleScreens(bool isToggleScreensEnabled) { if (!isToggleScreensEnabled) { return; } if (WeatherPage.IsWeatherPageVisible()) { WeatherPage.TapForecastTab(); ForecastPage.TapWeatherTab(); } else { ForecastPage.TapWeatherTab(); WeatherPage.TapForecastTab(); } }