public void SubmitSearchItem(string artistName, searchStringType type) { SeleniumSetMethods.EnterText(artistName, SearchBoxText); SeleniumSetMethods.DropDownMethod(SubmitDropDown, UserHomePageObject.searchStringType.Artist.ToString()); Console.WriteLine("The search value is: " + SeleniumGetMethods.GetTextFromSearch(SearchBoxText)); Console.WriteLine("The drop down value is: " + SeleniumGetMethods.GetTextfromDDB(SubmitDropDown)); SeleniumSetMethods.ClickButton(ButtonClick); }
public UserHomePageObject PerformLogin() { SeleniumSetMethods.EnterText(sUserName, LoginUserName); SeleniumSetMethods.EnterText(sPassword, LoginPassword); Console.WriteLine("The username is: " + SeleniumGetMethods.GetTextFromSearch(LoginUserName)); Console.WriteLine("The password is: " + SeleniumGetMethods.GetTextFromSearch(LoginPassword)); SeleniumSetMethods.ClickButton(ButtonLogin); return(new UserHomePageObject()); }