Metadata-Version: 2.1
Name: robotframework-selenium-mouseextensions
Version: 0.1
Summary: Extra mouse actions missing from the standard SeleniumLibrary
Home-page: https://github.com/mauricekoster/robotframework-selenium-mouseextensions/
Author: Maurice Koster
Author-email: maurice@mauricekoster.com
License: UNKNOWN
Keywords: robotframework selenium
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: robotframework-seleniumlibrary

# 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

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

## Usage

Add plugin information to the library import of SeleniumLibrary:

```robotframework
*** Settings ***
Library           SeleniumLibrary    plugins=SeleniumMouseExtensions 
```

### Example

```robotframework
*** 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](https://mauricekoster.github.io/robotframework-selenium-mouseextensions/) and if you need to create one for offline usage:
```bash
python -m robot.libdoc SeleniumLibrary::plugins=SeleniumMouseExtensions ./SeleniumLibraryWithMouseExtensions.html
```


