My experience running Selenium tests on the Chrome browser in SauceLabs has been quite frustrating due to the sluggish performance.
One of the major issues I have encountered is the significant delay in javascript queries, taking about 200ms to return results in Sauce compared to just 5ms when executed on my local machine. This drastic 40x difference significantly impacts the overall run-times, making them approximately 5 times longer in Sauce compared to running the test locally.
The snippet of code causing this issue looks something like this:
return (List) driver.executeScript("return jQuery.find('.some_selector')");
I am curious if there is a known explanation for the slow response times and if there are any modifications I can make to improve the speed of javascript queries in Sauce?