Exemplo n.º 1
0
        public void FooterApplication_Column()
        {
            #region Expected strings
            string expected1, expected2, expected3, expected4, expected5, expected6, expected7;
            expected1 = "Professional Online Trading Software | Quantower — Quantower trading platform";
            expected2 = "List of available connections and data providers — Quantower trading platform";
            expected3 = "Quantower roadmap - features that coming soon — Quantower trading platform";
            expected4 = "Recent updates of Quantower platform — Quantower trading platform";
            expected5 = "Welcome to Quantower Help - Quantower";
            expected6 = "QUANTOWER API | Quantower API";
            expected7 = "Frequently asked questions — Quantower trading platform";
            #endregion

            NewHomepageFooter footer = new NewHomepageFooter(Driver);
            NewHomepage       q      = new NewHomepage(Driver);
            q.ScrollOneFrame(10000);

            Driver.FindElement(footer.features).Click();
            Assert.IsTrue(Driver.Title == expected1, "Title isn't equal {0}", expected1);

            Driver.Navigate().Back();
            Driver.FindElement(footer.connections).Click();
            Assert.IsTrue(Driver.Title == expected2, "Title isn't equal {0}", expected2);

            Driver.Navigate().Back();
            Driver.FindElement(footer.roadmap).Click();
            Assert.IsTrue(Driver.Title == expected3, "Title isn't equal {0}", expected3);

            Driver.Navigate().Back();
            Driver.FindElement(footer.releaseNotes).Click();
            Assert.IsTrue(Driver.Title == expected4, "Title isn't equal {0}", expected4);

            Driver.Navigate().Back();
            Driver.FindElement(footer.documentation).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected5, "Title isn't equal {0}", expected5);
            Driver.Close();
            Driver.SwitchTo().Window(Driver.WindowHandles[0]);

            Driver.FindElement(footer.apiReference).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected6, "Title isn't equal {0}", expected6);
            Driver.Close();

            Driver.SwitchTo().Window(Driver.WindowHandles[0]);
            Driver.FindElement(footer.faq).Click();
            Assert.IsTrue(Driver.Title == expected7, "Title isn't equal {0}", expected7);
        }
Exemplo n.º 2
0
        public void FooterSocials_Column()
        {
            NewHomepageFooter footer = new NewHomepageFooter(Driver);
            NewHomepage       q      = new NewHomepage(Driver);

            q.ScrollOneFrame(10000);

            #region Expected strings
            string expected1, expected2, expected3, expected4, expected5;
            expected1 = "Quantower - Главная | фейсбук";
            expected2 = "Quantower | LinkedIn";
            expected3 = "Quantower (@Quantower_app) | Твиттер";
            expected4 = "Telegram: Contact @quantower_updates";
            expected5 = "Quantower trading platform - YouTube";
            #endregion

            Driver.FindElement(footer.facebookFooter).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected1, "Title isn't equal {0}", expected1);
            Driver.Close();
            Driver.SwitchTo().Window(Driver.WindowHandles[0]);

            Driver.FindElement(footer.linkedinFooter).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected2, "Title isn't equal {0}", expected2);
            Driver.Close();
            Driver.SwitchTo().Window(Driver.WindowHandles[0]);

            Driver.FindElement(footer.twitterFooter).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected3, "Title isn't equal {0}", expected3);
            Driver.Close();
            Driver.SwitchTo().Window(Driver.WindowHandles[0]);

            Driver.FindElement(footer.telgramFooter).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected4, "Title isn't equal {0}", expected4);
            Driver.Close();
            Driver.SwitchTo().Window(Driver.WindowHandles[0]);

            Driver.FindElement(footer.youtubeFooter).Click();
            Driver.SwitchTo().Window(Driver.WindowHandles[1]);
            Assert.IsTrue(Driver.Title == expected5, "Title isn't equal {0}", expected5);
        }
Exemplo n.º 3
0
        public void FooterCompany_Column()
        {
            NewHomepageFooter footer = new NewHomepageFooter(Driver);
            NewHomepage       q      = new NewHomepage(Driver);

            q.ScrollOneFrame(10000);

            #region Expected strings
            string expected1, expected2, expected3, expected4, expected5, expected6;
            expected1 = "Quantower team and values — Quantower trading platform";
            expected2 = "News and updates — Quantower trading platform";
            expected3 = "B2B solutions for your business — Quantower trading platform";
            expected4 = "Quantower, contact us — Quantower trading platform";
            expected5 = "Terms and policies — Quantower trading platform";
            expected6 = "Terms and policies — Quantower trading platform";
            #endregion

            Driver.FindElement(footer.team).Click();
            Assert.IsTrue(Driver.Title == expected1, "Title isn't equal {0}", expected1);
            Driver.Navigate().Back();

            Driver.FindElement(footer.blog).Click();
            Assert.IsTrue(Driver.Title == expected2, "Title isn't equal {0}", expected2);
            Driver.Navigate().Back();

            Driver.FindElement(footer.BtB).Click();
            Assert.IsTrue(Driver.Title == expected3, "Title isn't equal {0}", expected3);
            Driver.Navigate().Back();

            Driver.FindElement(footer.contactUs).Click();
            Assert.IsTrue(Driver.Title == expected4, "Title isn't equal {0}", expected4);
            Driver.Navigate().Back();

            Driver.FindElement(footer.termsAndConditions).Click();
            Assert.IsTrue(Driver.Title == expected5, "Title isn't equal {0}", expected5);
            Driver.Navigate().Back();

            Driver.FindElement(footer.privacyPolicy).Click();
            Assert.IsTrue(Driver.Title == expected6, "Title isn't equal {0}", expected6);
        }