public void certificateProfile() { //using Chrome using (GlobalDefinitions.driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) //Using Firefox //using (GlobalDefinitions.driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) { string ProfileMenuOption = "Profile"; string addNewOption = "Certifications"; //sign in SignIn newSignIn = new SignIn(); newSignIn.LoginSteps(); //MenuOption to Click ClickMenu clickMenu = new ClickMenu(); clickMenu.clickMenuOptions(ProfileMenuOption); //click on options Language, Skills, Education, Certifications clickMenu.clickSubMenuOptions(addNewOption); //click on Add New button ProfileOptions addNewButton = new ProfileOptions(); addNewButton.clickAddNew(addNewOption); //add and verify Skill ProfileCertification addCertification = new ProfileCertification(); addCertification.addNewCertification(); addCertification.rowCertificatePresent(); } }
public void languageProfile() { //using Chrome using (GlobalDefinitions.driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) //Using Firefox //using (GlobalDefinitions.driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) { string ProfileMenuOption = "Profile"; string addNewOption = "Languages"; //sign in SignIn newSignIn = new SignIn(); newSignIn.LoginSteps(); //MenuOption to Click ClickMenu clickMenu = new ClickMenu(); clickMenu.clickMenuOptions(ProfileMenuOption); //click on options Language, Skills, Education, Certifications clickMenu.clickSubMenuOptions(addNewOption); //click on Add New button ProfileOptions addNewButton = new ProfileOptions(); addNewButton.clickAddNew(addNewOption); //add langauge ProfileLanguage addLangauge = new ProfileLanguage(); addLangauge.addNewLanguage(); //taking screenshot SaveScreenShotClass.SaveScreenshot(GlobalDefinitions.driver, "LangaugeAddedSuccessfully"); } }
public void skillProfile() { //using Chrome using (GlobalDefinitions.driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) //Using Firefox //using (GlobalDefinitions.driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) { string ProfileMenuOption = "Profile"; string addNewOption = "Skills"; //sign in SignIn newSignIn = new SignIn(); newSignIn.LoginSteps(); //MenuOption to Click ClickMenu clickMenu = new ClickMenu(); clickMenu.clickMenuOptions(ProfileMenuOption); //click on options Language, Skills, Education, Certifications clickMenu.clickSubMenuOptions(addNewOption); //click on Add New button ProfileOptions addNewButton = new ProfileOptions(); addNewButton.clickAddNew(addNewOption); //add and verify Skill ProfileSkill addSkill = new ProfileSkill(); addSkill.addNewSkill(); addSkill.rowSkillPresent(); } //[AssemblyCleanup] //public static void TearDown() //{ // GlobalDefinitions.driver.Quit(); //} }