Example #1
0
        public void WhenIClickButton(string action)
        {
            CommonPage commonPage = new CommonPage(Driver, _appSettings);

            switch (action)
            {
            case "Login":
                commonPage.DoUserLogin();
                break;

            case "SignOut":
                commonPage.DoUserSignOut();
                break;

            case "Continue to shipping":
            case "Continue to payment":
                commonPage.ClickContinueShipping(action);
                break;

            case "Return to information":
            case "Return to shipping":
                commonPage.ClickReturnLinkBtn(action);
                break;

            case "Save":
                commonPage.ClickAccountSaveBtn();
                break;
            }
        }