Ejemplo n.º 1
0
            //
            // Methods
            //
            public override IMessage Invoke(IMessage msg)
            {
                IWebElement        element           = this.Element;
                IMethodCallMessage methodCallMessage = msg as IMethodCallMessage;

                if (typeof(IWrapsElement).IsAssignableFrom((methodCallMessage.MethodBase as MethodInfo).DeclaringType))
                {
                    return(new ReturnMessage(element, null, 0, methodCallMessage.LogicalCallContext, methodCallMessage));
                }
                return(WebDriverObjectProxy.InvokeMethod(methodCallMessage, element));
            }
Ejemplo n.º 2
0
            //
            // Methods
            //
            public override IMessage Invoke(IMessage msg)
            {
                IList <IWebElement> elementList = this.ElementList;

                return(WebDriverObjectProxy.InvokeMethod(msg as IMethodCallMessage, elementList));
            }