Skip to content

[Bug] False positive for undefined-argument-value rule #1161

Open
@molsky

Description

@molsky

What happened?

With 5.7 version a lot of false positives for undefined-argument-value with following RF syntax:
${test}= Get Text xpath=(//h4)[5] *= min

What command/code did you try to run?

${test}= Get Text xpath=(//h4)[5] *= min

What is the full error message?

X.robot:89:42 [E] 0933 Undefined argument value, use *=${EMPTY} instead (undefined-argument-value)

What did you expect to happen instead?

Seems that it doesn't work right with two space syntax when the keyword supports assert operations.

Error: ${test}= Get Text xpath=(//h4)[5] *= min
No error: ${test}= Get Text xpath=(//h4)[5] *=min

https://marketsquare.github.io/robotframework-browser/Browser.html?tag=Getter#Get%20Text

Operating System

No response

Robocop version

5.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions