public void AcessarMenuContratoParaMontagem()
        {
            var jvm = BuscarJanelaJava("Omni");

            if (jvm != null)
            {
                var nos = jvm.GetChildren();

                foreach (var n in nos)
                {
                    var no = n.GetTitle();

                    if (no.Contains("Omni"))
                    {
                        var title1 = n.GetChildren().ToList()[1].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetChildren().ToList()[1].GetTitle();

                        var title = n.GetChildren().ToList()[1].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetTitle();

                        var objeto = n.GetChildren().ToList()[1].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetChildren().ToList()[1];

                        //var ot = n.GetChildren().ToList()[1].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetChildren();
                        var ot = n.GetChildren().ToList()[1].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren().ToList()[0].GetChildren().ToList()[1].GetChildren().ToList()[0].GetChildren();

                        foreach (var ccnnoodde in ot)
                        {
                            var tititi = ccnnoodde.GetTitle();

                            if (ccnnoodde.GetTitle().Contains("Contratos Para Montagem"))
                            {
                                var cnode = (AccessibleContextNode)ccnnoodde;

                                AccessibleActions acc = null;
                                _accessBridge.Functions.GetAccessibleActions(cnode.JvmId, cnode.AccessibleContextHandle, out acc);

                                AccessibleActionsToDo ad1 = new AccessibleActionsToDo()
                                {
                                    actions      = new AccessibleActionInfo[CodeGen.Interop.Constants.MAX_ACTION_INFO],
                                    actionsCount = 1
                                };

                                ad1.actions[0].name = "Click";

                                int falha1 = 0;

                                var ret = _accessBridge.Functions.DoAccessibleActions(cnode.JvmId, cnode.AccessibleContextHandle, ref ad1, out falha1);

                                break;
                            }
                        }
                    }
                }
            }
        }
        internal static bool DoAction(System.IntPtr accObj, out int failure, int vmId, bool isDefaultAction, string actionName)
        {
            bool flag = false;

            failure = 0;
            if (!accObj.Equals((System.IntPtr)System.IntPtr.Zero))
            {
                AccessibleActionsToDo[] actionsToDo = new AccessibleActionsToDo[] { new AccessibleActionsToDo() };
                actionsToDo[0].actionsCount = 1;
                actionsToDo[0].actions      = new AccessibleActionInfo[0x20];
                actionsToDo[0].actions[0]   = new AccessibleActionInfo();
                if (isDefaultAction)
                {
                    actionsToDo[0].actions[0].name = JavaDataDrivenAdapterConstants.DEFAULT_ACTION_NAME;
                }
                else
                {
                    actionsToDo[0].actions[0].name = actionName;
                }
                try
                {
                    flag = JavaAccNativeMethods.doAccessibleActions(vmId, accObj, actionsToDo, out failure);
                    if (flag == false)
                    {
                        throw new Exception("doAccessibleActions failed: " + failure.ToString());
                    }
                }
                catch (System.Exception exception)
                {
                    if (!IsJavaAccException(exception) || !IsJavaAccExceptionMaskable(exception))
                    {
                        throw;
                    }
                    return(flag);
                }
            }
            return(flag);
        }