[QA] How to zoom into the browser and take screenshots

Željko Filipin zfilipin at wikimedia.org
Sat Jun 14 14:49:17 UTC 2014


On Thu, Jun 12, 2014 at 5:52 AM, Vikas Yaligar <vikasyaligar.it at gmail.com>
wrote:

> Let me know how is it possible to achieve zoomed screenshot.
>

require "watir-webdriver"
browser = Watir::Browser.new :firefox
browser.goto "google.com"
browser.send_keys [:command, :add]
browser.screenshot.save "0.png"
browser.close

More information about sending special keys to browser:

http://watirwebdriver.com/sending-special-keys/

I have attached a few screen shots. Let me know if you have further
questions.

Željko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140614/1869c821/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0.png
Type: image/png
Size: 41148 bytes
Desc: not available
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140614/1869c821/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 41218 bytes
Desc: not available
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140614/1869c821/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 40992 bytes
Desc: not available
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140614/1869c821/attachment-0005.png>


More information about the QA mailing list