Capture Jpg Snapshots using Webdriver

1,171 views
Skip to first unread message

Amar Gandhi

unread,
Dec 18, 2012, 4:51:49 PM12/18/12
to seleniu...@googlegroups.com
Hi,

driver.getScreenshotAs(OutputType.FILE) captures screenshots in png format. Is there any way we can capture it in jpg format ? As I require jpg images for next level of validation.

Thanks
Amar

FriendlyTester

unread,
Dec 19, 2012, 10:12:28 AM12/19/12
to seleniu...@googlegroups.com
I use C#, but here is how I did it.

What language are you using, perhaps just see if you can convert it using a library?

Amar Gandhi

unread,
Dec 19, 2012, 10:52:59 AM12/19/12
to seleniu...@googlegroups.com
I am using Java, so can we save the screenshot / take screenshot in jpeg format in the first hand like you are doing in C# ?

Amar Gandhi

unread,
Dec 19, 2012, 10:54:28 AM12/19/12
to seleniu...@googlegroups.com
I am using Java, so can we save the screenshot / take screenshot in jpeg format in the first hand like you are doing in C# ?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/FDKw6OeWRo4J.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks
Amar

FriendlyTester

unread,
Dec 19, 2012, 10:56:44 AM12/19/12
to seleniu...@googlegroups.com
So I don't know Java so wouldn't know.
Some simple examples here of how you can convert it to a jpeg in java if no one can tell you how to save it as a jpeg

Reply all
Reply to author
Forward
0 new messages