# 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_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:
```python
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:
```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...
Raw data
{
"_id": null,
"home_page": "https://github.com/d-biehl/robotframework-libraryproxy",
"name": "robotframework-libraryproxy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8.1,<4.0.0",
"maintainer_email": "",
"keywords": "Test,Testing,RobotFramework",
"author": "Daniel Biehl",
"author_email": "dbiehl@live.de",
"download_url": "https://files.pythonhosted.org/packages/a0/39/ef3349a33f642f5f5cbed9ac1ada964c103b03b9d16b040f8e12b71130cd/robotframework_libraryproxy-0.2.0.tar.gz",
"platform": null,
"description": "# robotframework-libraryproxy\n\nSimple library for calling RobotFramework keywords from Python, with the possibility to log them in the output.\n\nExample Python library:\n\n```python\nfrom Browser import Browser\nfrom robotlibraryproxy import library_proxy\n\ndef do_something_in_browser(self):\n with library_proxy(Browser) as browser:\n browser.new_browser(headless=False)\n browser.new_page(\"https://example.com\")\n browser.click(\"text=More Information...\")\n\n```\n\nor another way as python descriptor:\n\n```python\nfrom Browser import Browser\nfrom robotlibraryproxy import library_proxy\n\n\nclass Dummy:\n\n browser: Browser = library_proxy()\n\n def do_something_in_browser(self):\n self.browser.new_browser(headless=False)\n self.browser.new_page(\"https://example.com\")\n self.browser.click(\"text=More Information...\")\n\n```\n\nExample Test case that uses this library:\n\n```robotframework\n*** Settings ***\n\nLibrary Dummy.py\n\n# Library Browser\n\n*** Test Cases ***\n\na simple test\n Do Something In Browser\n\n```\n\nAn excerpt from the Robot log:\n\n\n![Example from robot log](doc/example_screenshot.png)\n\nmore comming soon...\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Call RobotFramework keywords from Python",
"version": "0.2.0",
"split_keywords": [
"test",
"testing",
"robotframework"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "181c6ec7eb9155942f23bde59532ec1b",
"sha256": "49ce7acff2a58deb9bfbc554c5549f61f91beaa449bfa8d05d8abdac7df2539d"
},
"downloads": -1,
"filename": "robotframework_libraryproxy-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "181c6ec7eb9155942f23bde59532ec1b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<4.0.0",
"size": 8078,
"upload_time": "2022-12-15T13:52:17",
"upload_time_iso_8601": "2022-12-15T13:52:17.395768Z",
"url": "https://files.pythonhosted.org/packages/41/a9/d42f269886169dcc0605b4635f49fa3656bbbfe9a31e6a37dd123cdd4950/robotframework_libraryproxy-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "3537c230e004dec0906ce74e1af5dba8",
"sha256": "ac0c3e989ce5fdbb5dd18007da63d8246e44d97567c8cfd21f03a3584a667442"
},
"downloads": -1,
"filename": "robotframework_libraryproxy-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "3537c230e004dec0906ce74e1af5dba8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<4.0.0",
"size": 8479,
"upload_time": "2022-12-15T13:52:18",
"upload_time_iso_8601": "2022-12-15T13:52:18.902153Z",
"url": "https://files.pythonhosted.org/packages/a0/39/ef3349a33f642f5f5cbed9ac1ada964c103b03b9d16b040f8e12b71130cd/robotframework_libraryproxy-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-15 13:52:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "d-biehl",
"github_project": "robotframework-libraryproxy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "robotframework-libraryproxy"
}