1

Code:

Input Username [Arguments] ${username} Input Text login_username_id ${username} 

Error:- Keyword 'Input Username' expected 1 arguments, got 0 May i know why am i getting this error?

1
  • It would help if you could show the code that is calling your keyword, because that is where the error is located.CommentedAug 3, 2015 at 18:34

2 Answers 2

2

Pass in self as the first argument in your method. Something like:

def input_username(self, arg1): 
1
  • Simple, direct, and saved my day! + 1CommentedMar 24, 2018 at 23:20
0

The error message is telling you exactly what the problem is: your keyword Input Username expects exactly one argument, but the place where you are calling it is only providing one argument.

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.