Comments (10)
Make sure you have installed latest robotframework-selenium2library
in your current pycharm
python interpreter.
from hyperrobotframeworkplugin.
I have installed robotframework-selenium2library 3.0.0, and it seems the latest version in https://pypi.org/.
My computer system is windows.
from hyperrobotframeworkplugin.
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.
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.
I am not able to reproduce your problem.
![image](https://private-user-images.githubusercontent.com/20297196/261520844-48eeac63-4e11-4699-a5f9-f7dd343f87fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2MTM4NTcsIm5iZiI6MTcxODYxMzU1NywicGF0aCI6Ii8yMDI5NzE5Ni8yNjE1MjA4NDQtNDhlZWFjNjMtNGUxMS00Njk5LWE1ZjktZjdkZDM0M2Y4N2ZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDA4MzkxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiNjU0ZjljYjU1NjM3NjA0OTk0MjVhMzQzYjJiZmEyMThiNTRkZjI4MGVjMDFkNmM5MTM4Zjc4MDE1MjliMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lLbDl86thJXo5KBPKfrr_GGlZN9vEmHES5rfTKG50Tc)
try:
- update plugin to latest version
- close and reopen pycharm
- 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.
Cannot reproduce, closed.
from hyperrobotframeworkplugin.
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.
Thanks for supporting my plugin.
First of all, you need to confirm if the library is correctly imported.
![image](https://private-user-images.githubusercontent.com/20297196/266181329-d215bb79-2d9c-4eff-8889-09ff1a90e84d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2MTM4NTcsIm5iZiI6MTcxODYxMzU1NywicGF0aCI6Ii8yMDI5NzE5Ni8yNjYxODEzMjktZDIxNWJiNzktMmQ5Yy00ZWZmLTg4ODktMDlmZjFhOTBlODRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDA4MzkxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzZjg4NjU3NjNjOTkyN2QwYmFmNjc5OTUzZDgwNTU1ZTc0NmNhYzJmNmVkOTc3NTc0Nzk4ZjA1MzM5NGQ3ZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yxydXJkpjs7jmev3lRXoAU5XKQuD8v2pSspgcneMeHo)
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.
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.
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)
- Always insert 4 whitespace when typing Tab to be removed as this is controled with the code style in PyCharm HOT 4
- Allow attach customize robot running commands HOT 2
- Multiple same keywords check HOT 1
- Class variables not recognized and don't autofill HOT 1
- Dot.Notated Library import is not loaded HOT 5
- Dynamically set Test Variables not found HOT 3
- Tab lengths are not dynamic for multiline alignment HOT 2
- Support for extensions that rely on robotframework-pythoncore HOT 1
- Debug run - when running test in debug mode PyCharm is not stopping in debug breakpoints inside the python code HOT 2
- Missing BUT statement for Gherkin HOT 2
- Cannot seem to generate new reports HOT 2
- Plugin not working with IntelliJ IDEA 2024.1 (Community Edition) HOT 3
- Plugin does not recognize keywords for my project HOT 1
- Add support for VAR syntax (framework 7) HOT 1
- Code Completion is not working on Pycharm 2024.1.1 HOT 6
- Keywords prefixed by resource/library don't offer automcomplete HOT 3
- Feature Request: resolve robot.api.deco keywords HOT 2
- Add support for dynamic libraries HOT 6
- Add support for debugging .robot files
- Add support for json variables file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperrobotframeworkplugin.