Robotframework installation - keyword not found error



  • I have set up robotframework on my machine and I have installed all necessary plugin and using Pycharm as IDE.

    But I am getting keyword not found error and also SeleniumLibrary library which I have defined in the setting section is giving me inspection info: This inspection occurs when library or resources is not defined.

    Please go through attached screenshot for more details.

    Can anyone help me to resolve this?

    enter image description here enter image description here enter image description here



  • You have not defined any test cases, so RF interprets Open Browser as the test case name and gc as a keyword.

    A .robot file is not a single test case but a collection of test cases, a suite.

    *** Settings ***
    Library        SeleniumLibrary
    
    *** Variables ***
    ${url}        https//www.happyeasygo.com/
    
    *** Test Cases ***
    My Test Case
        Open Browser    ${url}    gc
    
    My 2nd Test Case
        Log    This is my second test case
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2