Skip to main content

Extra mouse actions missing from the standard SeleniumLibrary

Project description

robotframework-selenium-mouseextensions

Description

The standard SeleniumLibrary has some limited support for mouse actions. Mouse Down and Mouse Up are available and clicking on a specific position, but moving the mouse pointer while holding the mouse button is not supported.

This plugin will extend the SeleniumLibrary with extra mouse actions.

Install

pip install robotframework-selenium-mouseextensions [--upgrade]

Usage

Add plugin information to the library import of SeleniumLibrary:

*** Settings ***
Library           SeleniumLibrary    plugins=SeleniumMouseExtensions 

Example

*** Settings ***
Suite Setup       Open Browser    about:blank    browser=Chrome
Suite Teardown    Close Browser
Library           SeleniumLibrary    plugins=SeleniumMouseExtensions

*** Test Cases ***
Test Kleki
    Go To    http://kleki.com
    Sleep    5s
    mouse down with offset    //canvas    300    300
    mouse move by offset    100    100
    mouse up
    mouse down with offset    //canvas    300    400
    mouse move by offset    100    -100
    mouse up
    Capture Page Screenshot
    Sleep    5s

Keyword Documentation

Keyword documentation here and if you need to create one for offline usage:

python -m robot.libdoc SeleniumLibrary::plugins=SeleniumMouseExtensions ./SeleniumLibraryWithMouseExtensions.html

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file robotframework_selenium_mouseextensions-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_selenium_mouseextensions-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec853f47b7ef20bdfd6d48e8d6eef55d2626cd02c280d9a18a8ed1d55205eb08
MD5 4291ddef08eb9aa38b3b43fb2aa7775b
BLAKE2b-256 056d213d608fb5b58a248d217fbf897d9afba00e6cf33575be6131ea3f5c29fa

See more details on using hashes here.

Supported by

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