WebDriver/Selenium endpoint error

Best practices, code snippets for common functionality, examples, and guidelines.
boegvald
Posts: 62
Joined: Wed Mar 13, 2019 9:02 am

WebDriver/Selenium endpoint error

Post by boegvald » Mon Mar 07, 2022 4:24 pm

I am trying to execute tests using a WebDriver/Selenium endpoint that has been setup as per the instructions in the Ranorex documentation (on my local PC). The selenium server starts perfectly and can be used from another PC (using coded tests). Also, in the list of endpoints in Ranorex Studio, the endpoint is in status "Connected".

But when running tests in Ranorex Studio using the WebDriver/Selenium endpoint, I do get the following error when Ranorex Studio tries to open a webdriver browser:
The HTTP request to the remote WebDriver server for URL http://10.1.111.40:8282/wd/hub/session timed out after 60 seconds.
The operation has timed out

at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)at Ranorex.Plugin.Driver.RemoteWebDriver.<>c__DisplayClass17_0.<Connect>b__0(RemoteWebDriver d)at Ranorex.Plugin.Driver.RemoteWebDriver.ExecuteWhenNotDisposed(Action`1 action)at Ranorex.Plugin.Driver.RemoteWebDriver.Connect(Name browser, IDictionary`2 additionalCapabilities)at Ranorex.Plugin.Driver.ScriptInjectingRemoteWebDriver.Connect(Name browser, IDictionary`2 capabilities)at Ranorex.Plugin.Driver.WebDriverEndpoint.StartBrowser(Name browserName, String url, OpenBrowserOptions options)at Ranorex.Plugin.Integrate.Flavor.WebDriverEndpointFlavorElement.StartBrowserAction.<>c__DisplayClass8_0.<Invoke>b__0(IWebDriverEndpoint e)at Ranorex.Plugin.Integrate.Flavor.WebDriverEndpointFlavorElement.TryExecute(Action`1 action)at Ranorex.Plugin.Integrate.Flavor.WebDriverEndpointFlavorElement.StartBrowserAction.Invoke(WebDriverEndpointFlavorElement wdefe, Object[] args)at Ranorex.Plugin.Integrate.Flavor.WebDriverEndpointFlavorElement.OpenBrowser(String browser, String url, OpenBrowserOptions options)at Ranorex.Core.RemoteHost.OpenBrowser(String url, String browserName, String browserArgs, Boolean killExisting, Boolean maximized, Boolean clearCache, Boolean clearCodeCache, Boolean clearServiceWorker, Boolean incognitoMode, Boolean clearCookies, Boolean instrument)at SeleniumTest.OpenBrowser.Ranorex.Core.Testing.ITestModule.Run() in C:\Users\bobo\Git\ranorex-other\Users\BOBO\SeleniumTest\SeleniumTest\OpenBrowser.cs:line 83at Ranorex.Core.Testing.TestModuleLeaf.RunInternal(DataContext parentDataContext, Int32 iteration, Int32 iterationCount, Boolean skipIteration)
Are there anyone "on the line" that has any clue about what the problem is? Or can suggest any troubleshooting steps? Or otherwise point my in the right direction?

Ranorex v. 10.1.2
Selenium 4.1.2
Chrome 99.0
Best Regards

Bo

csaszi89
Posts: 31
Joined: Mon Jan 17, 2022 12:10 pm

Re: WebDriver/Selenium endpoint error

Post by csaszi89 » Tue Mar 29, 2022 9:22 pm

Hi,
I am afraid Selenium 4 is not supported yet.
Discussed here: https://www.ranorex.info/viewtopic.php? ... d+4#p68779

Greetings,
Gyuri

boegvald
Posts: 62
Joined: Wed Mar 13, 2019 9:02 am

Re: WebDriver/Selenium endpoint error

Post by boegvald » Wed Apr 13, 2022 11:46 am

Thanks much, Gyuri. I will try to get hold of the previous version.
Best Regards

Bo