One of the things that you will want to constantly do during your testing is to make sure that the application cache is storing your files. We can see if they have been downloaded.
Create a new test class using the example code at the beginningof the chapter.
In this part we are just going to check if the application cache is working. We do this by doing:
AppCacheStatus status = (ApplicationCache) driver).getStatus();
The status should be equal to uncached when we load it.
The final class should look like the following:
What just happened?
We have just seen how we can get the application cache from the browser using the API built into the Selenium WebDriver. We will get an enum returned that relates to the current status that the browser returns. Now we know that we have the means to start to have a look at how our web application will act if it were to become offline.
Selenium Related Interview Questions
|SILK TEST Interview Questions||QTP Interview Questions|
|JMeter Interview Questions||Automation Testing Interview Questions|
|Software testing Interview Questions||JUnit Interview Questions|
|TestNG Interview Questions||SAP Testing Interview Questions|
|Selenium WebDriver Interview Questions||Selenium IDE Interview Questions|
|QUnit Testing Interview Questions||Performance Testing Interview Questions|
|Hadoop Testing Interview Questions|
Getting Started With Selenium Ide
Overview Of Selenium Webdriver
Working With Webdriver
Getting Started With Selenium Grid
Advanced User Interactions
Working With Html5
Migrating From Remote Control To Webdriver
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.