public static void NavigatePrivacyPolicy() { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.PrivacyPolicyFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Privacy and Cookie Policy")); }
public static void NavigateTermsofService() { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.TermsOfServiceFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Terms of Service Policy")); }
public static void NavigateMore_TowerGarden() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.TowerGardenFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Grow Your Own Food with Tower Garden")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateCountrySelect() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.CountryLocationFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Choose your country and language")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateJuicePlus_ClinicalResearch() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.ClinicalResearchFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Juice Plus+ Clinical Research")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateCompany_GivingBack() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.GivingBackFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Giving Back")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateYoutubeClick() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.YoutubeIcon); //Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Juice PLUS+")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateInstagramClick() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.InstagramIcon); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("juiceplus_uk")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateCountryClick() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.IrelandFooter); js.ExecuteScript("arguments[0].click();", nav.CountrySelectionUnitedKingdom); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateResources_LetsGoBeyond() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.GoBeyondFooter); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Let's Go Beyond")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateResources_HealthyStartforFamilies() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.HealthyStartsLink); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Join the Study and enjoy free product for your child!")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateJuicePlus_HowCapsAreMade() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.HowCapsulesAreMadeFooter); Thread.Sleep(5000); Assert.IsTrue(Driver.WebDriver.PageSource.Contains("How are Juice Plus+ capsules made?")); } catch (Exception e) { Console.WriteLine(e); } }
public static void NavigateJuicePlus_InformedChoice() { try { NavigationFooterPageObjects nav = new NavigationFooterPageObjects(); IJavaScriptExecutor js = ((IJavaScriptExecutor)Driver.WebDriver); js.ExecuteScript("arguments[0].click();", nav.InformedChoiceFooter); Driver.WebDriver.Close(); //Assert.IsTrue(Driver.WebDriver.PageSource.Contains("Informed-Choice Certification")); } catch (Exception e) { Console.WriteLine(e); } }