I’ve spent the day profiling trying to figure out why our RemoteWebDriver usage of Winium.Desktop is so much slower than just running the tests straight through Winium.Cruciatus.

The profile yielded that TCPSocket#initialize was the culprit, strange, opening a socket shouldn’t take that long.

A quick google gave me this post for an answer.

Could try
require 'resolv-replace' before hand, or using instead of

I didn’t go as far as to require the resolv-replace but just changed my ‘localhost:9999’ to ‘’ instead and my 10 calls of a total 10sec dropped to 0.5sec total. Remarkable.

So that’s an easy fix for you if you find yourself in the same bind.

Why not join the newsletter?

Why not join the newsletter?

If you're not a fan of facebook or twitter, sign up to the newsletter and I'll send you a quick update every so often with what's going on and new posts coming out.

You have Successfully Subscribed!