Exemple #1
0
        public bool TrackTraceInitialNavigation(Boolean AreYou16OrOver, String PostCode)
        {
            // App._driver.FindElementByXPath(GetNotifiedContinue).Click();
            AndriodGeneric.GetWebElement(GetNotifiedContinue, AndriodGeneric.Locator.XPath).Click();

            if (AreYou16OrOver)
            {
                AndriodGeneric.GetWebElement(IAmOver16, AndriodGeneric.Locator.XPath).Click();
            }
            else
            {
                AndriodGeneric.GetWebElement(IAmUnder16, AndriodGeneric.Locator.XPath).Click();
            }


            AndriodGeneric.ScrollByCoOrdinates(8, -360);
            AndriodGeneric.ScrollByCoOrdinates(8, -360);
            AndriodGeneric.GetWebElement(AuthenticationIAgree, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.GetWebElement(this.PostCode, AndriodGeneric.Locator.XPath).SendKeys(PostCode);
            AndriodGeneric.GetWebElement(PostCodeContinue, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.ScrollByCoOrdinates(8, -200);

            AndriodGeneric.GetWebElement(LocalAuthority, AndriodGeneric.Locator.XPath).Click();
            AndriodGeneric.GetWebElement(LocalAuthorityConfirm, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.GetWebElement(ContactTracingContinue, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.GetWebElement(NotificationTurnOn, AndriodGeneric.Locator.XPath).Click();


            return(true);
        }
        public void CheckSymptoms()
        {
            AndriodGeneric.GetWebElement(CheckSymptomsTextView, AndriodGeneric.Locator.XPath).Click();
            AndriodGeneric.GetWebElement(SymptomFever, AndriodGeneric.Locator.XPath).Click();
            AndriodGeneric.GetWebElement(SymptomCough, AndriodGeneric.Locator.XPath).Click();
            AndriodGeneric.ScrollByCoOrdinates(8, -360);

            AndriodGeneric.GetWebElement(SymptomLossOfTasteAndSmell, AndriodGeneric.Locator.XPath).Click();
            AndriodGeneric.GetWebElement(SymptomsContinue, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.GetWebElement(SymptomsDontRememberDate, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.GetWebElement(SymptomsSubmit, AndriodGeneric.Locator.XPath).Click();

            AndriodGeneric.ScrollByCoOrdinates(8, -360);
            AndriodGeneric.ScrollByCoOrdinates(8, -360);
            //AndriodGeneric.GetWebElement("//android.widget.Button[@text='Book a free test']").Click();
        }