Esempio n. 1
0
 public void AcademicLanguage()
 {
     GCDriver.FindElement(By.CssSelector("[href *= '/glossary/academic-language']")).Click();
     GCDriver.FindElement(By.ClassName("lead")).Text.Equals("The formal language common in books and at school that students need to understand and communicate in academic disciplines.");
     TestingClass.IsElementPresentLinkText("Succeeding in School: Essential Features of Literacy Development", GCDriver);
     TestingClass.IsElementPresentCSS(".field.field-name-field-infographic", GCDriver);
 }
Esempio n. 2
0
 public void Accuracy()
 {
     GCDriver.FindElement(By.CssSelector("[href *= '/glossary/accuracy']")).Click();
     GCDriver.FindElement(By.ClassName("lead")).Text.Equals("The ability to read words correctly.");
     TestingClass.IsElementPresentLinkText("Learning to Read: “The Simple View of Reading”", GCDriver);
     TestingClass.IsElementPresentCSS(".field.field-name-field-infographic", GCDriver);
 }
 public void TestTitle()
 {
     Assert.IsTrue(GCDriver.Title.Equals("Improving Literacy Briefs | National Center on Improving Literacy"));
     Assert.IsTrue(TestingClass.TextCheckMethodCSS("Improving Literacy Briefs", ".page__title", GCDriver));
     Assert.IsTrue(TestingClass.TextCheckMethodClassName("Read research summaries and infographics written by our experts that simplify complex ideas related to literacy.", "lead", GCDriver));
     TestingClass.IsElementPresentCSS(".container.header-icon", GCDriver);
 }
Esempio n. 4
0
        public void TestButtonArchive()
        {
            TestingClass.IsElementPresentCSS("[href *= '/events/archived']", GCDriver);

            GCDriver.FindElement(By.CssSelector("[href *= '/events/archived']")).Click();
            Assert.IsTrue(GCDriver.FindElement(By.CssSelector(".page__title")).Text.Equals("Archived Events & Opportunities"));
        }
Esempio n. 5
0
        public void KidZone()
        {
            TestingClass.IsElementPresentCSS(".panel-pane.pane-custom.pane-8.margin-bottom", GCDriver);

            GCDriver.FindElement(By.XPath("//*[@id='content']/div/div[1]/div[2]/div[1]/div/div/div/div/a")).Click();
            //Assert.IsTrue(GCDriver.Title.Equals("Kid Zone! | Kid Zone! | National Center on Improving Literacy"));
            Assert.IsTrue(GCDriver.Title.Equals("Kid Zone! | Kid Zone! National Center on Improving Literacy"));
        }
 public void WhatDoWeMeanByEvidenceBased()
 {
     GCDriver.FindElement(By.LinkText("What Do We Mean by Evidence-based?")).Click();
     Assert.IsTrue(GCDriver.Title.Equals("What Do We Mean by Evidence-based? | National Center on Improving Literacy"));
     TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/what-do-we-mean-by-evidence-based.pdf']", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[4]/a/img", GCDriver);
     TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
 }
 public void DefiningDyslexia()
 {
     GCDriver.FindElement(By.LinkText("Defining Dyslexia")).Click();
     Assert.IsTrue(GCDriver.Title.Equals("Defining Dyslexia | National Center on Improving Literacy"));
     TestingClass.IsElementPresentCSS("[href *= 'improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/Defining-Dyslexia.pdf']", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[7]/a/img", GCDriver);
     TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
 }
Esempio n. 8
0
 public void AlphabetPrinciple()
 {
     GCDriver.FindElement(By.CssSelector("[href *= '/glossary/alphabetic-principle']")).Click();
     GCDriver.FindElement(By.ClassName("lead")).Text.Equals("The idea that letters and groups of letters match individual sounds in words.");
     TestingClass.IsElementPresentLinkText("The Alphabetic Principle: From Phonological Awareness to Reading Words", GCDriver);
     TestingClass.IsElementPresentCSS(".field.field-name-field-infographic", GCDriver);
     TestingClass.IsElementPresentLinkText("What’s the best way to teach the Alphabetic Principle?", GCDriver);
     TestingClass.IsElementPresentLinkText("Enhancing the Core: Alphabetic Principle", GCDriver);
     TestingClass.IsElementPresentLinkText("Reading Basics Webinar", GCDriver);
 }
Esempio n. 9
0
        public void TestHeader()
        {
            //header title
            Assert.IsTrue(TestingClass.TextCheckMethodClassName("You are here\r\nHome\r\nState Agencies\r\nDevelop and implement state and local structures, procedures and policies to address student challenges in learning to read and write.", "col-sm-8", GCDriver));
            //header description
            Assert.IsTrue(TestingClass.TextCheckMethodCSS("Develop and implement state and local structures, procedures and policies to address student challenges in learning to read and write.", ".block.block-block.first.last.odd", GCDriver));
            //Assert.IsTrue(GCDriver.FindElement(By.CssSelector(".container.header-icon")).Displayed;

            TestingClass.IsElementPresentCSS(".container.header-icon", GCDriver);
        }
Esempio n. 10
0
        public void TestHeader()
        {
            //header title
            Assert.IsTrue(GCDriver.FindElement(By.ClassName("col-sm-8")).Text.Equals("You are here\r\nHome\r\nParents & Families\r\nHelp your child learn to read and write with practical ideas and expert-approved strategies."));

            //header description
            Assert.IsTrue(GCDriver.FindElement(By.CssSelector(".block.block-block.first.last.odd")).Text.Equals("Help your child learn to read and write with practical ideas and expert-approved strategies."));

            TestingClass.IsElementPresentCSS(".container.header-icon", GCDriver);
        }
Esempio n. 11
0
        public void ScrapyardSlice()
        {
            int Count = 4;

            GCDriver.FindElement(By.LinkText(gameTitle[Count])).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
            TestingClass.IsElementPresentCSS(".col-sm-3", GCDriver);
            GCDriver.FindElement(By.CssSelector(".btn.btn-action.btn-go")).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
        }
 public void KeyRolesForChildrensSuccess()
 {
     GCDriver.FindElement(By.LinkText("Key Roles for Children’s Literacy Success")).Click();
     Assert.IsTrue(GCDriver.Title.Equals("Key Roles for Children’s Literacy Success | National Center on Improving Literacy"));
     TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/key-roles-for-childrens-reading-success.pdf']", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[12]/a/img", GCDriver);
     TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
     TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
 }
 public void PartneringWithYourChildsSchool()
 {
     GCDriver.FindElement(By.LinkText("Partnering With Your Child’s School")).Click();
     Assert.IsTrue(GCDriver.Title.Equals("Partnering With Your Child’s School | National Center on Improving Literacy"));
     TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/Partnering-With-Childs-School.pdf']", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[12]/a/img", GCDriver);
     TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
     TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
 }
 public void LearningToRead()
 {
     GCDriver.FindElement(By.LinkText("Learning to Read: “The Simple View of Reading”")).Click();
     Assert.IsTrue(GCDriver.Title.Equals("Learning to Read: “The Simple View of Reading” | National Center on Improving Literacy"));
     TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/Learing-to-Read-The-Simple-View-of-Reading.pdf']", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
     TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[11]/a/img", GCDriver);
     TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
     TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
 }
        public void LearningAboutYourChildsReadingDevelopment()
        {
            GCDriver.FindElement(By.LinkText("Learning About Your Child’s Reading Development")).Click();
            Assert.IsTrue(GCDriver.Title.Equals("Learning About Your Child’s Reading Development | National Center on Improving Literacy"));

            TestingClass.IsElementPresentCSS("[href *= 'improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/learning-about-your-childs-reading-development.pdf']", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[8]/a/img", GCDriver);
            TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
            TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
        }
Esempio n. 16
0
        public void TestHeader()
        {
            //header title
            Assert.IsTrue(GCDriver.FindElement(By.ClassName("col-sm-8")).Text.Equals("You are here\r\nHome\r\nSchools & Districts\r\nFind evidence-based professional development and effective approaches to screen, identify, and teach students with literacy-related difficulties, including dyslexia."));

            //header description
            Assert.IsTrue(GCDriver.FindElement(By.CssSelector(".block.block-block.first.last.odd")).Text.Equals("Find evidence-based professional development and effective approaches to screen, identify, and teach students with literacy-related difficulties, including dyslexia."));

            //Assert.IsTrue(GCDriver.FindElement(By.CssSelector(".container.header-icon")).Displayed;
            TestingClass.IsElementPresentCSS(".container.header-icon", GCDriver);
        }
        public void SucceedingInSchool()
        {
            GCDriver.FindElement(By.LinkText("Succeeding in School: Essential Features of Literacy Development")).Click();
            Assert.IsTrue(GCDriver.Title.Equals("Succeeding in School: Essential Features of Literacy Development | National Center on Improving Literacy"));

            TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/succeeding-in-schools-essential-features-of-literacy-development.pdf']", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[9]/a/img", GCDriver);
            TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
            TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
        }
Esempio n. 18
0
        public void DanielTigerBooks()
        {
            int Count = 0;

            GCDriver.FindElement(By.LinkText(gameTitle[Count])).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
            TestingClass.IsElementPresentCSS(".col-sm-3", GCDriver);

            GCDriver.FindElement(By.LinkText("Download App")).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
        }
Esempio n. 19
0
        public void PhonicAwareness()
        {
            Assert.IsTrue(GCDriver.FindElement(By.LinkText("Phonemic Awareness")).Text.Equals("Phonemic Awareness"));
            // Assert.IsTrue(TextCheckMethodXPath("Definition", "fa fa-info-circle"));
            // Assert.IsTrue(TextCheckMethodCSS(" Learn More", ".fa.fa-graduation-cap"));

            Assert.IsTrue(GCDriver.FindElement(By.ClassName("more-link")).Text.Equals("More Glossary Terms"));
            TestingClass.IsElementPresentCSS(".fa.fa-graduation-cap", GCDriver);

            TestingClass.IsElementPresentCSS(".fa.fa-info-circle", GCDriver);
        }
        public void HowWeLearnToRead()
        {
            GCDriver.FindElement(By.LinkText("How We Learn to Read: The Critical Role of Phonological Awareness")).Click();
            Assert.IsTrue(GCDriver.Title.Equals("How We Learn to Read: The Critical Role of Phonological Awareness | National Center on Improving Literacy"));

            TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/how-we-learn-to-read-the-critical-role-of-phonological-awareness.pdf']", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[12]/a/img", GCDriver);
            TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
            TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
        }
Esempio n. 21
0
        public void WordGirlSuperHeroTrainign()
        {
            int Count = 17;

            GCDriver.FindElement(By.LinkText(gameTitle[Count])).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
            TestingClass.IsElementPresentCSS(".col-sm-3", GCDriver);

            GCDriver.FindElement(By.CssSelector(".btn.btn-action.btn-go")).Click();
            Assert.IsTrue(GCDriver.Title.Equals(gameTitle[Count] + " | National Center on Improving Literacy"));
            Count++;
        }
Esempio n. 22
0
        public void K1CaregiverQuestions()
        {
            //checks if questions are present on the k1CaregiverPage
            GCDriver.FindElements(By.CssSelector(".btn.btn-primary.btn-lg.au-target"))[0].Click();
            GCDriver.FindElements(By.CssSelector(".btn.btn-primary.btn-lg.au-target"))[0].Click();
            Assert.IsTrue(GCDriver.Url.Equals("https://improvingliteracy2.uoregon.edu/checklist#/personas/caregiver/K1"));
            TestingClass.IsElementPresentCSS(".text-primary.mr-2.align-middle.au-target.fa.fa-book", GCDriver);
            TestingClass.IsElementPresentCSS(".text-primary.mr-2.align-middle.au-target.fa.fa-language", GCDriver);
            GCDriver.FindElements(By.ClassName("au-target"))[8].Click();
            bool btn = GCDriver.FindElements(By.ClassName("au-target"))[9].Selected;

            Assert.IsTrue(btn);
        }
        public void SupportingYourChildsLiteracyDevelopment()
        {
            GCDriver.FindElement(By.LinkText("Supporting Your Child’s Literacy Development at Home")).Click();
            Assert.IsTrue(GCDriver.Title.Equals("Supporting Your Child’s Literacy Development at Home | National Center on Improving Literacy"));

            TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/Supporting-Your-Child-Literacy-Development-at-Home.pdf']", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[9]/a/img", GCDriver);
            TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
            TestingClass.IsElementPresentCSS(".panel.panel-default.panel-horizontal", GCDriver);
            TestingClass.IsElementPresentCSS(".panel-heading", GCDriver);
            TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
        }
        public void TheAlphabeticPrinciple()
        {
            GCDriver.FindElement(By.LinkText("The Alphabetic Principle: From Phonological Awareness to Reading Words")).Click();
            Assert.IsTrue(GCDriver.Title.Equals("The Alphabetic Principle: From Phonological Awareness to Reading Words | National Center on Improving Literacy"));

            TestingClass.IsElementPresentCSS("[href *= '/improvingliteracy.org/sites/improvingliteracy1.uoregon.edu/files/briefs/the-alphabetic-principle.pdf']", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[1]/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[15]/a/img", GCDriver);
            TestingClass.IsElementPresentXpath("//*[@id='content']/div/div/div[1]/p[16]/a/img", GCDriver);
            TestingClass.IsElementPresentLinkText("Related Resources", GCDriver);
            TestingClass.IsElementPresentClassName("margin-bottom", GCDriver);
            TestingClass.IsElementPresentCSS(".panel-heading", GCDriver);
        }
Esempio n. 25
0
 public void TwitterIsPresent()
 {
     GCDriver.SwitchTo().Frame("twitter-widget-0");
     TestingClass.IsElementPresentCSS(".timeline-Tweet-brand.u-floatRight", GCDriver);
 }
Esempio n. 26
0
 public void PictureTest()
 {
     //tests if staff pictures are presenet and visable on about page
     TestingClass.IsElementPresentCSS(".figure", GCDriver);
 }
Esempio n. 27
0
 public void LiasonPresent()
 {
     TestingClass.IsElementPresentCSS(".panel-pane.pane-custom.pane-8", GCDriver);
 }
Esempio n. 28
0
 public void TestButtonSubscribe()
 {
     TestingClass.IsElementPresentCSS("[href *= 'webcal://improvingliteracy.org/calendar-created/ical/%2A/calendar.ics']", GCDriver);
 }