public static Boolean ObjectDropdown(string element, Locator Locator, string FieldName, string Action, string ActionData)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            if (ActionData.Contains("/"))
            {
                ActionData = ActionData.Replace('/', ',');
            }
            var selectElement = new SelectElement(elementObj);

            switch (Action)
            {
            case "SelectValue":
                try
                {
                    selectElement.SelectByText(ActionData);
                    //selectElement.SelectedOption.Click();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ReadValue":
                try
                {
                    gbReturnValue = selectElement.SelectedOption.Text;
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "VerifyValue":
                gbReturnValue = selectElement.SelectedOption.Text;
                if (gbReturnValue.Equals(ActionData))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            default:
                return(false);
            }
        }
        public static Boolean ObjectText(string element, Locator Locator, string FieldName, string Action, string ActionData)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            //Perform the action
            switch (Action)
            {
            case "ReadValue":
                try
                {
                    gbReturnValue = elementObj.Text.Trim();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectEnabled":
                if (elementObj.Enabled)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "VerifyValue":
                try
                {
                    if (elementObj.Text.Trim().Equals(ActionData))
                    {
                    }
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            default:
                return(false);
            }
        }
        public static Boolean ObjectLink(string element, Locator Locator, string FieldName, string Action, string ActionData)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            switch (Action)
            {
            case "Click":
                try
                {
                    elementObj.Click();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ReadValue":
                try
                {
                    gbReturnValue = elementObj.GetAttribute("value");
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            default:
                return(false);
            }
        }
        public static Boolean ObjectImage(string element, Locator Locator, string FieldName, string Action)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            //Perform the action
            switch (Action)
            {
            case "Click":
                try
                {
                    elementObj.Click();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectEnabled":
                if (elementObj.Enabled)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            default:
                return(false);
            }
        }
        public static Boolean ObjectRadio(string element, Locator Locator, string FieldName, string Action, string CheckValue)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            //Perform the action
            switch (Action)
            {
            case "SelectValue":
                try
                {
                    elementObj.Click();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ReadValue":
                try
                {
                    flag = elementObj.Selected;
                    return(flag);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "VerifyValue":
                if (elementObj.Selected.Equals(CheckValue))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectEnabled":
                if (elementObj.Enabled)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            default:
                return(false);
            }
        }
        public static Boolean ObjectEdit(string element, Locator Locator, string FieldName, string Action, string ActionData)
        {
            IWebElement elementObj = AndriodGeneric.GetWebElement(element, Locator);

            //Perform the action
            switch (Action)
            {
            case "EnterValue":
                try
                {
                    elementObj.Clear();
                    elementObj.SendKeys(ActionData);
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ClearValue":
                try
                {
                    elementObj.Clear();
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "ReadValue":
                try
                {
                    gbReturnValue = elementObj.GetAttribute("value");
                    return(true);
                }
                catch (Exception e)
                {
                    return(false);
                }

            case "VerifyValue":
                gbReturnValue = elementObj.GetAttribute("value");
                if (gbReturnValue.Equals(ActionData))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectExist":
                if (elementObj.Displayed)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            case "ObjectEnabled":
                if (elementObj.Enabled)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }

            default:
                return(false);
            }
        }