Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
molsky opened this issue Jan 7, 2025 · 2 comments
Open

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

molsky opened this issue Jan 7, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@molsky
Copy link

molsky commented Jan 7, 2025

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

@molsky molsky added the bug Something isn't working label Jan 7, 2025
@bhirsz
Copy link
Member

bhirsz commented Jan 7, 2025

Duplicate #1160 (I will continue discussion in that issue)

@Lakitna
Copy link
Contributor

Lakitna commented Jan 9, 2025

This has been closed by #1165

Apparently I messed up the closed message in the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants