-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The source file of New Context in the documentation is wrong #2382
Comments
Thank you for reporting problem, the bug most likely relies on the PLC side and I raised issue also there. @allcontributors please add @mardukbp for bugs. |
I've put up a pull request to add @you! 🎉 @mardukbp already contributed before to bug |
After some investigation from my side, maybe it's not a problem of BrowserLibrary, I think it is more a problem of PythonLibCore. Your This line https://github.com/robotframework/PythonLibCore/blob/ef35336fbc895d3d329a6d61be52501c2a5a54d4/src/robotlibcore.py#L142 must unwrap the method using |
changing the given line to
should do the trick and it is also the same like robotframework gets the source for a keyword. |
sorry for delayed answer. Could you provide PR in the PLC side? |
This should be now fixed in PLC side, closing this issue too. |
New PLC will be used in next release #2412 |
Describe the bug
In the documentation generated with libdoc (in JSON or libspec format), the source file for the keyword New Context is
Browser/utils/deprecated.py
.To Reproduce
Steps to reproduce the behavior:
libdoc Browser browser.json
Expected behavior
The source of the keyword New Context is
Browser/keywords/playwright_state.py
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The keyword New Context has the following definition
Apparently, libdoc expects that the line after the keyword decorator is a function definition.
The text was updated successfully, but these errors were encountered: