Skip to content

Action Chains, Select IFrame and miscallenous keywords to add to robotframework-selenium2library

License

Notifications You must be signed in to change notification settings

hmalphettes/robotframework-selenium2library-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotframework-selenium2library-extensions

Extends the robotframework-selenium2library.

Extra keywords

Action Chains Lazily initiates an action chains.

Chain Sleep
Chain Click
Chain Click And Hold
Chain Drag And Drop
Chain Key Up
Chain Key Down
Chain Move By Offset
Chain Move To Element
Chain Move To Element With Offset
Chain Release
Chain Send Keys
Chain Send Keys To Element

Execute the created action chains:

Chains Perform Now

Drag and drop shortcuts: immediately performed.

Drag And Drop
Drag And Drop With Offset

Page Tests:

Select IFrame
Is Element Present
Is Visible

Note: some limitations regarding drag and drop

Note that action chains are not well supported by some dirvers. In particular, HTML5 Drag and Drop have not worked so far for firefox and chrome on my linux machine. It is working with jquery's drag and drop.

Here are some notable webkit and chrome-driver bugs to follow:

Requirements

  • Robotframework
  • robotframework-selenium2library

Installation

git clone https://github.com/hmalphettes/robotframework-selenium2library-extensions.git

And in your robotframework test, import the library. For example:

*** Settings
Library           ${CURDIR}/../../src/Selenium2LibraryExtensions    WITH NAME    Selenium2LibraryExtensions

Run the tests

./test/run_tests.sh

Extending robotframework-selenium2library without forking it

Use any of the techniques documented to write a python plugin for robotframework. In your keyword's method here how to access the active selenium's browser:

selenium2lib = BuiltIn().get_library_instance('Selenium2Library') selenium_browser = selenium2lib._current_browser()

Now refer to selenium driver's python API and go wild.

License

ASL-2.0 just like robotframework-selenium2library.

About

Action Chains, Select IFrame and miscallenous keywords to add to robotframework-selenium2library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published