Skip to content
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

Fail to get Selenium2Library keyword reference while typing any supported keyword in testcases context. #43

Open
jamesxu2018 opened this issue May 28, 2017 · 2 comments

Comments

@jamesxu2018
Copy link

I'm using pycharm+robot frame+this plugin for web developing,

I import Selenium2Library, but I can't get get Selenium2Library keyword reference while typing in testcases context. Note: I can get the keyword reference from an import resource file.

see the diagram for detail.
image

Is this a bug or should I install another plugin from JetBrains? I'm not quite sure the requirement marked with *

Code completion support:
User defined keywords from .robot files
User defined keywords from Static Python libraries []
Robot Library keywords [
]

[*] requires PyCharm or Python plugin from JetBrains

@Kenith
Copy link

Kenith commented Sep 5, 2017

I have the same issue, and seems the issue exists for a long time.
or do we miss something important settings?

issue

@Snooz82
Copy link

Snooz82 commented Feb 26, 2020

SeleniumLibrary is a dynamic library that is not yet supported.

@AmailP a fix or "easy" way to implement could be, that you base your code completion on the xml format that is generated by robot.libdoc.

python -m robot.libdoc SeleniumLibrary SeleniumLibrary.xml

then you could parse this xml to find all keywords and arguments in it.
Or you just allow users to put these kind of xml file in a specific folder.
Everything what is in there, is parsed by you and if this library is included, you offer the keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants