2

I have a small question regarding selenium automation. I am using selenium automation for one website(live). Does its performance depend on internet speed?

  • Well, if both your test client, Selenium Grid/Hub and system under test are in the same LAN, then you're nor reaching Internet. In such case Internet is not impacting you. So I would ask rather whether Selenium performance depends on network (not Internet) latency. – dzieciou Jan 7 '16 at 17:00
  • 1
    Note that you probably do not want to use Selenium for performance testing. – user246 Jan 7 '16 at 17:33
  • Yes Internet speed affect site loading and that affect your selenium script. Mostly there will be minor delay and can be handle by explicit wait. – Helping Hands Jan 8 '16 at 6:18
2

Yes, it most certainly does. Selenium can only address elements once they're loaded, but that loading (controls, ajax calls, ...) is depending on your connection (and browser).

In fact, I had a perfectly working script with nice explicit waits for our test environment. But the execution on the production website went bad in places, because the ajax calls were delayed by the proxy (or whatever the exact technical issue is). I even had to use some fixed waits (I know!) because the explicit waits didn't suffice for one reason or another.

  • I don't agree. Well, if both your test client, Selenium Grid/Hub and system under test are in the same LAN, then you're nor reaching Internet. In such case Internet is not impacting you. Only local (network) latency :-) – dzieciou Jan 7 '16 at 17:01
1

I found this article that describes Selenium architecture and how Selenium works. Quote from the article:

WebDriver controls browsers that are running in other processes. Although it's easy to overlook it, this means that every call that is made through its API is an RPC call and therefore the performance of the framework is at the mercy of network latency. In normal operation, this may not be terribly noticeable—most OSes optimize routing to localhost—but as the network latency between the browser and the test code increases, what may have seemed efficient becomes less so to both API designers and users of that API.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.