Пример #1
0
        private static void FillDataInTextField(AccessibilityNodeInfo edit, string newValue)
        {
            Bundle b = new Bundle();

            b.PutString(AccessibilityNodeInfo.ActionArgumentSetTextCharsequence, newValue);
            edit.PerformAction(global::Android.Views.Accessibility.Action.SetText, b);
        }
Пример #2
0
        public static void FillEditText(AccessibilityNodeInfo editTextNode, string value)
        {
            if (editTextNode == null || value == null)
            {
                return;
            }
            var bundle = new Bundle();

            bundle.PutString(AccessibilityNodeInfo.ActionArgumentSetTextCharsequence, value);
            editTextNode.PerformAction(Android.Views.Accessibility.Action.SetText, bundle);
        }
        protected bool Click(AccessibilityNodeInfo node)
        {
            if (node == null)
            {
                return(false);
            }

            while (!node.Clickable)
            {
                node = node.Parent;
            }

            return(node.PerformAction(Android.Views.Accessibility.Action.Click));
        }