Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

While locally we're having no problems, on a virtual server we're running Jenkins which kicks off Selenium Grid to execute some of our tests.

Exception has been thrown by the target of an invocation. -> No response from server

Every so often, usually on a click event, I get a test failing with a large Selenium error. I'm having no luck reproducing this locally, and am sort of at a loss as to how to proceed in fixing it. I'll include the error below:

Exception has been thrown by the target of an invocation. -> No response from server for url http://vm-selgrid3:5555/wd/hub/session/0894b06e-6e4f-46bc-ba82-f72a75deeb8d/element/12/click

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> OpenQA.Selenium.WebDriverException: No response from server for url http://vm-selgrid3:5555/wd/hub/session/0894b06e-6e4f-46bc-ba82-f72a75deeb8d/element/12/click
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
   at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebElement.Click()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OpenQA.Selenium.Support.PageObjects.PageFactory.ProxiedWebElementInterceptor.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.IWrapsElementProxy.Click()
share|improve this question
    
Are there any exceptions on where you have the grid running? Perhaps is the driver crashing and restarting and this is trying to execute when it is in a non running state? –  Dan Snell Jun 27 '13 at 5:17
    
@DanSnell we did some debugging and turns out that our version of java on the server is 32 bit. We've upgraded to 64-bit and the errors have reduced by 95%, but it's still happening occasionally :/ –  Mark Mayo Jun 30 '13 at 8:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.