public void WhenImageSliderButtonIsClicked(string p0) { _slide = _homePage.GetCurrentSliderImageText(); switch (p0) { case "Previous": _homePage.ClickSliderPrevious(); break; case "Next": _homePage.ClickSliderNext(); break; default: _scenario.WriteLine("ERROR"); break; } }