Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-biehl/robotframework-libraryproxy
Call RobotFramework keywords from Python
https://github.com/d-biehl/robotframework-libraryproxy
robotframework
Last synced: about 2 months ago
JSON representation
Call RobotFramework keywords from Python
- Host: GitHub
- URL: https://github.com/d-biehl/robotframework-libraryproxy
- Owner: d-biehl
- License: apache-2.0
- Created: 2022-11-24T21:16:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T10:24:04.000Z (5 months ago)
- Last Synced: 2024-10-09T15:44:09.621Z (2 months ago)
- Topics: robotframework
- Language: Python
- Homepage:
- Size: 373 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# robotframework-libraryproxy
Simple library for calling RobotFramework keywords from Python, with the possibility to log them in the output.
Example Python library:
```python
from Browser import Browser
from robotlibraryproxy import library_proxydef 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:
```python
from Browser import Browser
from robotlibraryproxy import library_proxyclass 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:
```robotframework
*** Settings ***Library Dummy.py
# Library Browser
*** Test Cases ***
a simple test
Do Something In Browser```
An excerpt from the Robot log:
![Example from robot log](doc/example_screenshot.png)
more comming soon...