Call RobotFramework keywords from Python
Project description
robotframework-libraryproxy
Simple library for calling RobotFramework keywords from Python, with the possibility to log them in the output.
Example Python library:
from Browser import Browser
from robotlibraryproxy import library_proxy
def do_something_in_browser(self):
with library_proxy(Browser) as browser:
browser.new_browser(headless=False)
browser.new_page("https://example.com")
browser.click("text=More Information...")
or another way as python descriptor:
from Browser import Browser
from robotlibraryproxy import library_proxy
class Dummy:
browser: Browser = library_proxy()
def do_something_in_browser(self):
self.browser.new_browser(headless=False)
self.browser.new_page("https://example.com")
self.browser.click("text=More Information...")
Example Test case that uses this library:
*** Settings ***
Library Dummy.py
# Library Browser
*** Test Cases ***
a simple test
Do Something In Browser
An excerpt from the Robot log:
more comming soon...
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 Distribution
Built Distribution
Close
Hashes for robotframework_libraryproxy-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0c3e989ce5fdbb5dd18007da63d8246e44d97567c8cfd21f03a3584a667442 |
|
MD5 | 3537c230e004dec0906ce74e1af5dba8 |
|
BLAKE2b-256 | a039ef3349a33f642f5f5cbed9ac1ada964c103b03b9d16b040f8e12b71130cd |
Close
Hashes for robotframework_libraryproxy-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ce7acff2a58deb9bfbc554c5549f61f91beaa449bfa8d05d8abdac7df2539d |
|
MD5 | 181c6ec7eb9155942f23bde59532ec1b |
|
BLAKE2b-256 | 41a9d42f269886169dcc0605b4635f49fa3656bbbfe9a31e6a37dd123cdd4950 |