// // 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)); }
// // Methods // public override IMessage Invoke(IMessage msg) { IList <IWebElement> elementList = this.ElementList; return(WebDriverObjectProxy.InvokeMethod(msg as IMethodCallMessage, elementList)); }