Пример #1
0
        public void WindowsMenu()
        {
            HomePageObject obj2 = new HomePageObject();

            obj2.LinkWindows.Click();
            WindowsPageObject obj3 = new WindowsPageObject();

            WaitForElement(By.XPath("//button[@id='c-shellmenu_50']"), 5);
            obj3.LinkWindows10.Click();
            Console.WriteLine("Menus: " + obj3.LinkWindows10.Text);
            Console.WriteLine(obj3.LinkHowtogetWindows.Text);
            Console.WriteLine(obj3.LinkBuyWindows.Text);
            Console.WriteLine(obj3.LinkBuyWindowsPro.Text);
            Console.WriteLine(obj3.LinkRemoteResources.Text);
            Console.WriteLine(obj3.LinkWindows7.Text);
            Console.WriteLine(obj3.LinkWindows10Features.Text);
            Console.WriteLine(obj3.LinkSyncPhones.Text);
            Console.WriteLine(obj3.LinWindowsSecurity.Text);
            Console.WriteLine(obj3.LinkWindowsEditions.Text);
            Console.WriteLine(obj3.LinkSpecifications.Text);
            SearchPage();
        }
Пример #2
0
        public void HomepageTC()
        {
            HomePageObject obj        = new HomePageObject();
            string         OfficeLink = obj.LinkOffice.Text;

            VAsserts(OfficeLink, "Office");
            string WindowsLink = obj.LinkWindows.Text;

            VAsserts(WindowsLink, "Windows");
            string SurfaceLink = obj.LinkSurface.Text;

            VAsserts(SurfaceLink, "Surface");
            string XboxLink = obj.LinkXbox.Text;

            VAsserts(XboxLink, "Xbox");
            string DealsLink = obj.LinkDeals.Text;

            VAsserts(DealsLink, "Deals");
            string SupportLink = obj.LinkSupport.Text;

            VAsserts(SupportLink, "Support");
            WindowsMenu();
        }