robot-plugin icon indicating copy to clipboard operation
robot-plugin copied to clipboard

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

Open jamesxu2018 opened this issue 7 years ago • 2 comments

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

jamesxu2018 avatar May 28 '17 07:05 jamesxu2018

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

issue

Kenith avatar Sep 05 '17 06:09 Kenith

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.

Snooz82 avatar Feb 26 '20 21:02 Snooz82