Git Product home page Git Product logo

Comments (10)

jnhyperion avatar jnhyperion commented on July 26, 2024

Make sure you have installed latest robotframework-selenium2library in your current pycharm python interpreter.

from hyperrobotframeworkplugin.

DANIKE avatar DANIKE commented on July 26, 2024

I have installed robotframework-selenium2library 3.0.0, and it seems the latest version in https://pypi.org/.
My computer system is windows.
image

from hyperrobotframeworkplugin.

jnhyperion avatar jnhyperion commented on July 26, 2024

did you config your pycharm python interpreter well?

https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#widget

and make sure your library is installed in the same python with your pycharm if you system has multi python

from hyperrobotframeworkplugin.

DANIKE avatar DANIKE commented on July 26, 2024

Yes, the config of pycharm python interpreter is right, and the keyword can run corectly. I just can't find the keyword defenition or use Code Completion.
But the robot's builtin librarys work well.

from hyperrobotframeworkplugin.

jnhyperion avatar jnhyperion commented on July 26, 2024

I am not able to reproduce your problem.

image

try:

  1. update plugin to latest version
  2. close and reopen pycharm
  3. according to the library intro "Starting from version 3.0, Selenium2Library is renamed to SeleniumLibrary and this project exists mainly to help with transitioning.", using SeleniumLibrary instead

from hyperrobotframeworkplugin.

jnhyperion avatar jnhyperion commented on July 26, 2024

Cannot reproduce, closed.

from hyperrobotframeworkplugin.

DANIKE avatar DANIKE commented on July 26, 2024

Hi, my robotframework-selenium2library's version is 3.0.0, robotframework-seleniumlibrary's version is 3.2.0,I have tried many times (including upgrade the plugin version and didn't work) and I found the robotframework-seleniumlibrary's version did not have the problem. But our projects use 3.2.0 version for a long time and there is some difference between the two robotframework-seleniumlibrary version.
I really want to know the real reason, becase it runs well and it didn't have the problem when using ride.
I really like your plugin, so if there is someway to solve the problem, I will very thankful for it.

from hyperrobotframeworkplugin.

jnhyperion avatar jnhyperion commented on July 26, 2024

Thanks for supporting my plugin.

First of all, you need to confirm if the library is correctly imported.

image

then plugin will search the kw definition in pyi file: your_python_interpreter_lib_folder/site-packages/SeleniumLibrary/__init__.pyi, you can check if this file can be found.

from hyperrobotframeworkplugin.

DANIKE avatar DANIKE commented on July 26, 2024

Thanks, the real reason is there no file:your_python_interpreter_lib_folder/site-packages/SeleniumLibrary/init.pyi. The problem dispeares when I put the file into the path. The init.pyi file starts from robotframework-seleniumlibrary-5.0.0. Because of this, the code_completion function will not work in old versions(<5.0.0).
I want to know would you fix this problem and there are must some teams using the old version like us.

from hyperrobotframeworkplugin.

jnhyperion avatar jnhyperion commented on July 26, 2024

I see, pyi file aims to allow any ide plugin to know the functions definition of a python library, because some of the python libraries' functions is dynamically generated in python runtime, SeleniumLibrary is this type of library too.

Without this pyi file, plugin will never know the kw definitions, so, the only way is to upgrade your SeleniumLibrary > 5.0.0.

from hyperrobotframeworkplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.