All Projects → a0s → watir-get-image-content

a0s / watir-get-image-content

Licence: MIT license
Get Watir::Image's content copy without external download

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to watir-get-image-content

Panther
A browser testing and web crawling library for PHP and Symfony
Stars: ✭ 2,480 (+17614.29%)
Mutual labels:  webdriver
Selenoid Ui
Graphical user interface for Selenoid project
Stars: ✭ 237 (+1592.86%)
Mutual labels:  webdriver
violent-webdriver
UI自动化测试暴力插件
Stars: ✭ 41 (+192.86%)
Mutual labels:  webdriver
Element
💦Load test your app using real web browsers
Stars: ✭ 204 (+1357.14%)
Mutual labels:  webdriver
Selenium Python Helium
Selenium-python but lighter: Helium is the best Python library for web automation.
Stars: ✭ 2,732 (+19414.29%)
Mutual labels:  webdriver
Selion
Enabling Test Automation in Java
Stars: ✭ 252 (+1700%)
Mutual labels:  webdriver
Xctestwd
A Swift implementation of WebDriver server for iOS that runs on Simulator/iOS devices.
Stars: ✭ 195 (+1292.86%)
Mutual labels:  webdriver
jest-environment-selenium
Jest environment for running Selenium WebDriver tests
Stars: ✭ 28 (+100%)
Mutual labels:  webdriver
Cdp4j
cdp4j - Chrome DevTools Protocol for Java
Stars: ✭ 232 (+1557.14%)
Mutual labels:  webdriver
wdio-intercept-service
🕸 Capture and assert HTTP ajax calls in webdriver.io
Stars: ✭ 101 (+621.43%)
Mutual labels:  webdriver
Arsenic
Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Stars: ✭ 209 (+1392.86%)
Mutual labels:  webdriver
Steward
PHP libraries that makes Selenium WebDriver + PHPUnit functional testing easy and robust
Stars: ✭ 215 (+1435.71%)
Mutual labels:  webdriver
elemental
Elemental makes Selenium automation faster and easier.
Stars: ✭ 36 (+157.14%)
Mutual labels:  webdriver
Appium
📱 Automation for iOS, Android, and Windows Apps.
Stars: ✭ 14,469 (+103250%)
Mutual labels:  webdriver
protractor-element-extend
Module, that helps you to extend ElementFinder in your own custom fragments
Stars: ✭ 22 (+57.14%)
Mutual labels:  webdriver
Python Scripts
Collection of Various Python Script's.💻
Stars: ✭ 195 (+1292.86%)
Mutual labels:  webdriver
Pytest Selenium
Plugin for running Selenium with pytest
Stars: ✭ 246 (+1657.14%)
Mutual labels:  webdriver
ScribeBot
A highly scriptable automation system full of cool features. Automate everything with a little bit of Lua.
Stars: ✭ 72 (+414.29%)
Mutual labels:  webdriver
selenium-auto-wait
Utility to automatically manage all web element waits and enables to write wait-free selenium tests.
Stars: ✭ 31 (+121.43%)
Mutual labels:  webdriver
wd.java
Java Client binding for Macaca
Stars: ✭ 30 (+114.29%)
Mutual labels:  webdriver

Return content of image as base64-encoded png

Build Status

Installation

Add this line to your application's Gemfile:

gem 'watir-get-image-content'

And then execute:

$ bundle

Or install it yourself as:

$ gem install watir-get-image-content

Usage

require 'watir'
require 'watir-get-image-content'
browser = Watir::Browser.new
browser.goto 'http://for_example.com/page_with_images'

browser.image(:index, 1).to_png_base64        
browser.image(:alt, 'Alt text').to_png_base64
browser.image(:index, 1).to_jpg_base64
browser.image(:alt, 'Alt text').to_jpg_base64

File.write('png.png', browser.image(:index, 1).to_png)
File.write('jpg.jpg', browser.image(:index, 1).to_jpg)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].