Our web application currently takes about 3 minutes to fully load without caching and 10 seconds with caching. When I open the application through WebDriver, it takes about 3 minutes to download, that is, caching is not used. I watched this in Firefox and Chrome browser. Not sure how to allow the driver to use the cache instead of downloading each file from the server each time the application is opened.
Here is what I have tried. 1. disable cache cleaning when the browser exits in the browser settings. 2. set 'applicationCacheEnabled' requiredcapabilitiy to 'true'
DesiredCapabilities cap = DesiredCapabilities.firefox(); cap.setCapability("applicationCacheEnabled", "true"); WebDriver d = new FirefoxDriver(cap)
But nothing works. Please let me know how I can get webdriver to use caching.
firefox google-chrome caching selenium
Muthu
source share