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
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
- Download URL: robotframework_selenium_mouseextensions-0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec853f47b7ef20bdfd6d48e8d6eef55d2626cd02c280d9a18a8ed1d55205eb08 |
|
MD5 | 4291ddef08eb9aa38b3b43fb2aa7775b |
|
BLAKE2b-256 | 056d213d608fb5b58a248d217fbf897d9afba00e6cf33575be6131ea3f5c29fa |