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. Commented Aug 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):
Sign up to request clarification or add additional context in comments.

1 Comment

Simple, direct, and saved my day! + 1
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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.