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 | RSS feed
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 hashes)