Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RobotFrameWork- some Libraries are not imported

I'm new to RobotFramework. I installed vs code with robocorp extensions. i also installed several libraries like:

  • seleniumlibrary
  • screencaplibrary
  • jsonlibrary

the issue is that some libraries are not imported as expected, like:

  • screencaplibrary
  • jsonlibrary

However,

  • seleniumlibrary

imported without errors what am i doing wrong?

see screenshot attached:

screencaplibrary jsonlibrary

like image 969
Awesome Developer Avatar asked Oct 20 '25 17:10

Awesome Developer


2 Answers

It seems like you haven't set your pythonpath for robotframework.

To do this go to the Robot Framework Language Server extension and go to extension settings.

In there you'll find: Robot > Language-server: Python enter image description here

and: Robot > Python: Executable enter image description here

Set both of them to your python.exe path and restart vsc.

like image 136
Ruben Avatar answered Oct 25 '25 19:10

Ruben


For Pycharm, please go to languages & frameworks in settings and update/add the python path for the field Language Server Python.

enter image description here

In order to get these options within the languages & frameworks-section, you will need to have the Robot Framework Language Server plugin installed.

  • Link to plugin: Robot Framework Language Server
like image 30
Nandan A Avatar answered Oct 25 '25 18:10

Nandan A



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!