Skip to main content

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


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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page