0 purchases
robotframeworklibraryproxy 0.3.0
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...
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.