# 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": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "Test, Testing, RobotFramework",
"author": "Daniel Biehl",
"author_email": "dbiehl@live.de",
"download_url": "https://files.pythonhosted.org/packages/b0/14/2402dbc54270a31240250af656ede719e89dfed729b2e40efd5d675b381f/robotframework_libraryproxy-0.3.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.3.0",
"project_urls": {
"Homepage": "https://github.com/d-biehl/robotframework-libraryproxy",
"Repository": "https://github.com/d-biehl/robotframework-libraryproxy"
},
"split_keywords": [
"test",
" testing",
" robotframework"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "00e9ffde293b79d1fb9099f5370dd9e6c3545bc9f18aeacbb5b259d458b870cc",
"md5": "03c56549c080c66172ab4e31c8aa95d2",
"sha256": "6ec49118f1587248cf2ac0c05ac95353f5cdba9837a240e4be5e56017fb7ab5d"
},
"downloads": -1,
"filename": "robotframework_libraryproxy-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03c56549c080c66172ab4e31c8aa95d2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 8567,
"upload_time": "2024-08-02T10:33:49",
"upload_time_iso_8601": "2024-08-02T10:33:49.860862Z",
"url": "https://files.pythonhosted.org/packages/00/e9/ffde293b79d1fb9099f5370dd9e6c3545bc9f18aeacbb5b259d458b870cc/robotframework_libraryproxy-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b0142402dbc54270a31240250af656ede719e89dfed729b2e40efd5d675b381f",
"md5": "a9b0858298f9734d6ca6aa264a20d9ea",
"sha256": "99f6136abdfd124d0af625f722a06fbe29c1eda0444c97ccf729b83e0aae46be"
},
"downloads": -1,
"filename": "robotframework_libraryproxy-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "a9b0858298f9734d6ca6aa264a20d9ea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 8773,
"upload_time": "2024-08-02T10:33:50",
"upload_time_iso_8601": "2024-08-02T10:33:50.891825Z",
"url": "https://files.pythonhosted.org/packages/b0/14/2402dbc54270a31240250af656ede719e89dfed729b2e40efd5d675b381f/robotframework_libraryproxy-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-02 10:33:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "d-biehl",
"github_project": "robotframework-libraryproxy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "robotframework-libraryproxy"
}