how to disable taking screen shot capability in selenium webdriver using java
<p>Is it possible to disable the capability of taking screen shots in selenium webdriver using <code>DesiredCapabilities</code> class? I tried the below code setting the capability to false and then called a function to take screen shot. It does not work i.e. it does not disable from taking screen shots</p>

<pre><code>DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("takesScreenShot", false);

WebDriver oBrowser = new FirefoxDriver(capabilities);
oBrowser.get(baseUrl);

CommonLibs.library1.getScreenShot(oBrowser);
</code></pre>