Exemplo n.º 1
0
        public void PrivacyPage_Click_AlertButton()
        {
            PrivacyPage.GoTo();

            PrivacyPage.ClickSubmitButton();

            Assert.IsTrue(PrivacyPage.IsAlertDisplayed(), "Failed to display the alert");
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            PrivacyPage    PrivacyPage = new PrivacyPage();
            NavigationPage ss          = new NavigationPage();

            ss.PushAsync(PrivacyPage);
            //App.Current.MainPage.Navigation.PushAsync(new UploudPicPage());
            //App.GetMainPage("second");
        }
Exemplo n.º 3
0
        public void task8()
        {
            MainPage main = new MainPage(chromeDriver);

            main.goToPage();
            PrivacyPage page  = main.goToPrivacyPage();
            string      title = page.getPageTitle();

            if (title.Contains("privacy-policy") || chromeDriver.Url.ToLower().Contains("privacy-policy"))
            {
                Console.WriteLine("Search Passed");
            }
            else
            {
                Console.WriteLine("Search Failed");
            }
        }
Exemplo n.º 4
0
        public CommonElements()
        {
            // arrange
            d                  = new DriverFactory();
            driver             = d.CreateDriver();
            loginPage          = new LoginPage(driver);
            homePage           = new HomePage(driver);
            typeOfBusinessPage = new TypeOfBusinessPage(driver);
            header             = new Header(driver);
            footer             = new Footer(driver);
            privacyPage        = new PrivacyPage(driver);
            cookiesPage        = new CookiesPage(driver);
            tAndCpage          = new TAndCPage(driver);

            HttpClientHelper.ClearUserData($"***REMOVED***");

            loginPage.Login(d.Url);
            homePage.ApplyOnline();
        }