RobotFrameWork- some Libraries are not imported

Viewed 820

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

1 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.

Related