mtrubs / intellibot

IntelliJ/PyCharm plugin for Robot Automation Framework
https://github.com/millennialmedia/intellibot/wiki
MIT License
158 stars 109 forks source link

"Keyword definition not found" for SeleniumLibrary in PyCharm #191

Open super-sqa opened 6 years ago

super-sqa commented 6 years ago

I tried several different things including switching interpreter and virtual environments. PyCharm still shows the keywords as undefined. The test runs fine. Also no auto-completion or suggestion when I start to type the keywords.

I am on macOS Sierra

screen shot 2017-10-06 at 4 27 42 pm

screen shot 2017-10-06 at 4 29 39 pm

screen shot 2017-10-06 at 4 30 15 pm

abhishekatgit commented 5 years ago

Not sure if this has been brought up before, but there's a version of the plugin that contains the fix for this: Search for IntelliBot @SeleniumLibrary Patched in the plugins repository.

https://plugins.jetbrains.com/plugin/10700-intellibot-seleniumlibrary-patched

I recall seeing the GitHub fork with this fix, but now I can't seem to find it. I hope the author of this fix (Yu Cheng) didn't take it down as this plugin seems to have been abandoned but it's still the best Robot Framework plugin out there (tried a few).

Using PyCharm 2018.2 on Mac.

It worked for me thanks

kostiantynvoiku commented 5 years ago

Not sure if this has been brought up before, but there's a version of the plugin that contains the fix for this: Search for IntelliBot @SeleniumLibrary Patched in the plugins repository. https://plugins.jetbrains.com/plugin/10700-intellibot-seleniumlibrary-patched I recall seeing the GitHub fork with this fix, but now I can't seem to find it. I hope the author of this fix (Yu Cheng) didn't take it down as this plugin seems to have been abandoned but it's still the best Robot Framework plugin out there (tried a few). Using PyCharm 2018.2 on Mac.

It worked for me thanks

@abhishekatgit @joaonc do you guys mean that you just installed intellibot-seleniumlibrary-patched and the problem with keyword definition is being fixed for you? It doesn't work for me.

joaonc commented 5 years ago

Are you using selenium 3 and PyCharm 2018? I'm also using Python 3.6. Not sure if that matters, especially if you have Python 2.7.

kostiantynvoiku commented 5 years ago

@joaonc yes:

PyCharm 2018.1.5 CE on MacOS 10.14
python 3.6.5
selenium 3.14.1  
robotframework 3.0.4
robotframework-seleniumlibrary 3.0.2 

I also tried python2 and older selenium versions with selenium2library: got the same result "Keyword definition not found".

max-silent commented 5 years ago

@KonstantinxVx , this solution didn't work for me as well, until I tried following (maybe some steps are extra, but it's exactly what I did, before this problem disappeared):

  1. Uninstall patched version of IntelliBot plugin.
  2. Restart PyCharm.
  3. Close PyCharm.
  4. Install latest version of PyCharm (2018.2.4) on top of previous one (it was 2017.2.4 at my system) with agreeing to import all settings/configuration from already installed version.
  5. Start PyCharm and install patched version of IntelliBot plugin, mentioned by @joaonc
  6. Restart PyCharm.
  7. Open Project, which use "SeleniumLibrary" (exactly "SeleniumLibrary" (Selenium3), but not "Selenium2Library" (Selenium2), since this patched plugin does not resolve this issue for Selenium2).
  8. Wait until indexing is complete (progress is displayed in status bar at the bottom of PyCharm window).

After all this steps - highlighting/links and auto-completion works fine for me and does not become broken after tests execution and PyCharm restarting.

Please, share if these steps resolved this issue for you. Have no another ideas, but just interested. ))

P.S.: My current (successful :) ) configuration: OS: Windows 7 Ultimate (x64) PyCharm: 2018.2.4 IntelliBot @SeleniumLibrary Patched 0.10.143.381 Python: 3.6.3 robotframework 3.0.4 robotframework-seleniumlibrary 3.1.1 selenium 3.12.0

kostiantynvoiku commented 5 years ago

@max-silent, thanks :)

I re-installed all components from scratch few days ago and now it seems to be working (upgrading didn't help, only re-installing helped!).

My current configs: Python 3.7.0 PyCharm 2018.2.4 CE robotframework 3.0.4 robotframework-seleniumlibrary 3.2.0 selenium 3.14.1

shress10 commented 5 years ago

Not sure if this has been brought up before, but there's a version of the plugin that contains the fix for this: Search for IntelliBot @SeleniumLibrary Patched in the plugins repository.

https://plugins.jetbrains.com/plugin/10700-intellibot-seleniumlibrary-patched

I recall seeing the GitHub fork with this fix, but now I can't seem to find it. I hope the author of this fix (Yu Cheng) didn't take it down as this plugin seems to have been abandoned but it's still the best Robot Framework plugin out there (tried a few).

Using PyCharm 2018.2 on Mac.

This works!

Nall11G commented 5 years ago

Exactly, I also faced the same issue after upgrading the Robot framework, Python, and SeleniumLibrary. The workaround what I did, I have installed plugins in Pycharm editor (The Plugins is "IntelliBot @SeleniumLibrary Patched"). Now, all the selenium library keyword definitions are displaying.

Installed version and details:

Robot Framework 3.1.1 (Python 3.7.2 ) SeleniumLibrary3.3.1 Pycharm: pycharm-community-2018.3.5

Thanks, Nallavan G

amitsharmayogesh commented 5 years ago

This configuration works for me : And I have disabled the Intellibot version. image

image

chrisobrien1 commented 5 years ago

This configuration works for me : And I have disabled the Intellibot version. image

image

Worked a charm! Thank you!

joshiShrikant commented 5 years ago

Hello... I still have issues in getting this correctly. I have installed the new Intellibot plugin. But still 'open browser' command shows 'keyword definition not found'.

PyCharm version : 2018.1.4 (Community Edition) Windows 10 screenshot_1

Can somebody help?

"o" should be capital

ghost commented 5 years ago

image image

getting keyword not found error with the above version .

Please help tried so many variant but still it is not working

ctrongminh commented 5 years ago

Hi All,

I use the Pycharm 2019.2 CE, and it also does not recognize the "Open browser" or "close browser". I then install the Intellibot @SeleniumLibrary Patched plugins, and the problem is solved.

Python 2.7.13 robotframework==3.1.2 robotframework-seleniumlibrary==3.1.1 selenium==3.1.4

image

mecanda12 commented 4 years ago

Python 3 robotframework==3.1.2 robotframework-seleniumlibrary==4 selenium==4

IntelliBot @SeleniumLibrary Patched is not working on above mention new version. Most of function work but CTRl + B does not work. Any another Plugin?

JoelDelumen commented 4 years ago

Works fine for me.

On Sat, 28 Sep 2019 at 10:10, Harry notifications@github.com wrote:

Python 3 robotframework==3.1.2 robotframework-seleniumlibrary==4 selenium==4

IntelliBot @SeleniumLibrary Patched is not working on above mention new version. Most of function work but CTRl + B does not work. Any another Plugin?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/millennialmedia/intellibot/issues/191?email_source=notifications&email_token=AGLBXM24SWAIUKSUJOH6FRLQL24JBA5CNFSM4D6ESM72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72ONHQ#issuecomment-536143518, or mute the thread https://github.com/notifications/unsubscribe-auth/AGLBXMZYY2IL3AAT7MBUBT3QL24JBANCNFSM4D6ESM7Q .

mecanda12 commented 4 years ago

can you please explain the steps and add screen short of version, CTRL + B answer.

mhofer117 commented 4 years ago

"IntelliBot @SeleniumLibrary Patched" is crashing for me with robotframework-seleniumlibrary==4 and message: com.intellij.psi.impl.file.PsiDirectoryImpl cannot be cast to com.jetbrains.python.psi.PyFile

If I revert to robotframework-seleniumlibrary==3.3.1 and restart PyCharm it's working great.

anushri commented 4 years ago

Its crashing for me. any help ... if i can use any other plugin..

image

image

sakonachhoeurng commented 4 years ago

Hello Anyone can help me, I also have problem on Mac OS that does not have auto-completed. I use

kostiantynvoiku commented 4 years ago

@sakonachhoeurng it doesn't work properly with SeleniumLibrary ver. > 4.0.0a2. Try release version 3.3.1 or alpha 4.0.0a2.

pkumar145678 commented 4 years ago

In Pycharm Project Terminal install seleniumlibrary -> pip install robotframework-seleniumlibrary
and run -> robot .Robot

parabaskar commented 4 years ago

Ensure Project Interpreter is not empty.

dubaksk commented 4 years ago

We have the same issue for Selenium Library > 4.0.0a2:

Keyword definition not found

Robot itself is recognized and parsed properly. Both plugins: IntelliBot and IntelliBot @SeleniumLibrary Patched are not able to process Selenium.

System set up:

Are you still maintaining this plugin? Or it's time to find/move on different plugin? Thanks for the info.

JoelDelumen commented 4 years ago

Same issue here with Ubuntu 18.

On Tue, Feb 4, 2020, 6:34 AM David Dubovsky notifications@github.com wrote:

We have the same issue for Selenium Library:

Keyword definition not found

Robot itself is recognized and parsed properly. Both plugins: IntelliBot https://plugins.jetbrains.com/plugin/7386-intellibot and IntelliBot @SeleniumLibrary Patched https://plugins.jetbrains.com/plugin/10700-intellibot-seleniumlibrary-patched are not able to process Selenium.

System set up:

  • pyCharm 2019.3
  • Python 3.8
  • robotframework==3.1.2
  • robotframework-seleniumlibrary==4.1.0
  • selenium==3

Are you still maintaining this plugin? Or it's time to find/move on different plugin? Thanks for the info.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/millennialmedia/intellibot/issues/191?email_source=notifications&email_token=AGLBXM4725XLNRUYUZLMX5DRBFHEFA5CNFSM4D6ESM72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKXJJSY#issuecomment-581866699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLBXM7U53CHIH26JQVSUT3RBFHEFANCNFSM4D6ESM7Q .

neo502721 commented 4 years ago

This configuration works for me : And I have disabled the Intellibot version. image

image

Thanks!

mikap72 commented 4 years ago

This configuration works for me : And I have disabled the Intellibot version. image image

Thanks!

This worked for me. Issues arose only after installing both SeleniumLibrary and RequestsLibrary to PyCharm. But as said, disabling IntelliBot Plugin reverted that.

THANK YOU!

hardikgosai2310 commented 3 years ago

I am facing same issue but it got resolved by following steps.

Go to https://github.com/lte2000/intellibot/blob/develop/intellibot.jar

Download the jar file

Open PyCharm -> Settings -> Plugins -> Click on Setting Icon (Right side from the Installed tab) -> Select Install plugin from disk

Import the jar file in PyCharm editor

Click on Restart