Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Provides additional keywords to augment screenshots capabilities of RobotFramework's Selenium2Library, namely cropping and masking to help with perceptual diff testing.

Project description

Provides additional keywords to augment screenshots capabilities of RobotFramework’s Selenium2Library, namely cropping and masking to help with perceptual diff testing.

Usage

Capture main area only
  Capture And Crop Page Screenshot  example1.png  css=div.main

Capture and mask logo and submit button
  ${locators}  Create List  xpath=//span[@class='logo']  xpath=//button[text()='Save']
  Capture and Mask Page Screenshot  example2.png  locators=${locators}

Capture and mask areas
  # areas are specified as x,y,w,h
  ${rects}  Create List  10,20,25,25  30,40,50,50
  Capture and Mask Page Screenshot  example2.png  rects=${rects}

Dependencies

  • Selenuim2
  • RobotFramework
  • Selenium2Library (Robot Library)
  • Pillow
  • PerceptualDiff (you will need to install this separately)

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for RobotS2LScreenshot, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size RobotS2LScreenshot-0.1.1.tar.gz (18.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page