public void ThenUserClicksOnContinueButton() { //Read the elemnet locator from JSON File var btn = _parser.GetElementByName("ContinueButton"); SEActions.ClickButton(btn); }
public void WhenUserChangesLanguageInWelcomeScreen() { //Read the elemnet locator from JSON File var changeLanguage = _parser.GetElementByName("ChangeLanguage"); //Scroll to Element Driver.WebDriver.ScrollToElement(changeLanguage, 10); //Inspec the element IWebElement button = Driver.WebDriver.InspectElement(changeLanguage); //Read the element text string btn = button.Text; if (btn == "العربية") { SEActions.ClickButton(changeLanguage); } }
public void WhenClickOnButton(string _button) { var _uploadButton = _parser.GetElementByName(_button); SEActions.ClickButton(_uploadButton); }