Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

mauricekoster/robotframework-selenium-mouseextensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages