Unable to take screenshot - Type Cast exception

Unable to take screenshot - Type Cast exception

I have been using selenium for 3 months. I was using selenium-java-2.39.0.jar
I have the below code to take the screenshot and it works really fine.

WebDriver d = new FirefoxDriver();
File f = ((TakesScreenshot)d).getScreenshotAs(OutputType.FILE);
      FileUtils.copyFile(f, new File(System.getProperty("user.dir")
This topic belongs to the forum
  • Numbers of topics : 2339
  • Numbers of messages : 6054
  • Numbers of users : 5042
  • Numbers of points : 129
Similar topics
Hello can anyone please help me to take a screenshot using selenium webdriver (IE) using C#. Regards
When i not set kwargs, png coming as a black color background so black color text are not visible in screen shot.. |captureEntirePageScreenshot | C:\Users\chandrasekaran\Desktop\snapsie-0.2\test.jpg| | When i use this command it is not working..
Hi, I am New to Selenium, Can any one help me regarding How to use Test Suits generated by Selenium in java code. Also i want to know how to handle pop ups in Selenium and if i want to follow a particular URL how to do that. Thanks.
this might be something y'all want to consider...these are from blackle search 'management by exception' if you want to do your own search-don';t know if they'll hot link. reb naw, they dint...they just came glommed together...google or blackle for a
i am using selenium for generating script ,if i run the script then i am getting element not found exception. this is my script file: -------------------- //* 1. To test all the module links are working are not. package TestPackage; impor
Forums from same category
See also

0 Replies For the topic :
"Unable to take screenshot - Type Cast exception"

This topic has been viewed 930 times.

Last message :
31/03/2014 at 21h32 by "vino.infy@gmail.com"