All I could say is we cannot test code coverage completely and we would not know regarding that since we are QA / Testers and not developers. All we could do is we test the higher end functionality depending on the web application! And later all smaller chunks of the web application is being covered by the test cases you prepare. If you are knowing the code as per your question you are working mainly on webdriver and JUnit so this is an added advantage like you sit with the application and test end to end then later try to analyse if all the functionality are working perfectly. If you find any defect or any bug then "Code Coverage" isn't proper thats all! Bottom line is every button, tab, clicks etc should be covered in your test cases then its possible for complete coverage of the functionality ! If possible follow this link too as ans is written for the code coverage too : When to use White box Testing in a software or a website?When to use White box Testing in a software or a website? Hopefully you got the answer for your questions. If so then please let me know. Thanks !