Esempio n. 1
0
        public void Execute(Arguments arguments)
        {
            var returnString = string.Empty;
            var elements     = ElementsHelper.GetElements(arguments.By.Value, arguments.Search.Value);

            elements.ForEach(e => returnString += e.Text + "\n");

            Scripter.Variables.SetVariableValue(arguments.Result.Value, new TextStructure(returnString));
        }
Esempio n. 2
0
        public void Execute(Arguments arguments)
        {
            bool isPresent = false;

            if (ElementsHelper.GetElements(arguments.By.Value, arguments.Search.Value).Count > 0)
            {
                isPresent = true;
            }

            Scripter.Variables.SetVariableValue(arguments.Result.Value, new BooleanStructure(isPresent));
        }
        private void SrollToElement(AndroidDriver <AndroidElement> driver, Arguments arguments)
        {
            while (true)
            {
                if (ElementsHelper.GetElements(arguments.By.Value, arguments.Search.Value).Count > 0)
                {
                    return;
                }

                SwipeVertical(driver, 0.9, 0.1, 0.5, 2000, arguments.SwipeDir.Value);
            }
        }