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.

Source Distribution

RobotS2LScreenshot-0.1.1.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file RobotS2LScreenshot-0.1.1.tar.gz.

File metadata

File hashes

Hashes for RobotS2LScreenshot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ac6205642ad4342530f1581b4c46399f24e44d2b7bc9b3ac552f38441e7062c
MD5 2b9631a2183d7b28b963bf1d9c51329d
BLAKE2b-256 b0210b168b42ac6fb3b1dabd88b33d791d4011c79b6908f3820c59c3bfe2afd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page