Skip to content

Fixes and cleanup to list related keywords - #989

Merged
aaltat merged 4 commits into
robotframework:masterfrom
pekkaklarck:list-fixes
Nov 8, 2017
Merged

aaltat merged 4 commits into
robotframework:masterfrom
pekkaklarck:list-fixes

Conversation

@pekkaklarck

Copy link
Copy Markdown
Member

See commit messages of individual commits for more information.

Small changes to functionality too:
- Get List Items optional argument renamed from `value` to `values`.
  This fixes robotframework#722.
- List Selection Should Be doesn't anymore allow mixing labels and values.
  Possible backwards incompatible change.
- Failure message from List Selection Should Be and List Should Have No
  Selection show both labels and values.
"""Returns labels of selected options from selection list ``locator``.

Fails if there is no selection.
Starting from SeleniumLibrary 3.0, returns an empty list if there

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this chapter be last lines of the doc string? So that in future they are easy to spot and remove?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion it's fine either way. It's anyway easy to find all references to SeleniumLibrary 3.0 and removing this note isn't hard either. The main reason I decided not to have the note at the end was that we'd end up with two very short paragraphs. If you want to change it, go ahead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

"""Returns values of selected options from selection list ``locator``.

Fails if there is no selection.
Starting from SeleniumLibrary 3.0, returns an empty list if there

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this chapter be last lines of the doc string? So that in future they are easy to spot and remove?

@aaltat
aaltat merged commit c518611 into robotframework:master Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants