Exemplo n.º 1
0
        public static void VerifyProperty(AppiumDriver <AppiumWebElement> appDriver, By selector, eGUIElementAttribute attribute, string expAttributeVal, params string[] reqTags)
        {
            AppiumWebElement element         = SupportLib.FindElement(selector);
            string           actAttributeVal = SupportLib.GetAttributeValue(element, attribute);

            VerifyString(actAttributeVal, expAttributeVal, reqTags);
        }
Exemplo n.º 2
0
        public static void VerifyAlertButtons(string[] expButtonsByName, params string[] reqTags)
        {
            ReadOnlyCollection <AppiumWebElement> alertButtons = AppManager.CurrentAppDriver.FindElements(By.XPath(SupportLib.GetXPath(eGUIElementType.AlertButton, eGUIElementAttribute.None, string.Empty)));

            String[] actButtonsByName = new String[alertButtons.Count];
            for (int i = 0; i < alertButtons.Count; i++)
            {
                actButtonsByName[i] = alertButtons[i].GetAttribute("name");
            }
            VerifyString(String.Join(",", actButtonsByName), String.Join(",", expButtonsByName), reqTags);
        }