robotframework / robotframework/SeleniumLibrary
When multiple elements are found by the locator and keyword interacts with single element, generate a warning in the logs
Open
@aaltat is already working on this.
Since Jun 22, 2018.
deprecation
enhancement
priority: critical
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
Now if there are multiple elements found by the locator, then SL silently takes the first elements. This is not good implementation and we should want users about multiple elements found by the locators. We should perhaps display warning in the console and in the log.html that multiple elements. are found by the locator. Making this change is too late for 3.0 release.
Display warning in release 3.2.0. Should fail in release 3.3.0 (remember to create separate issue about failure when warning is done)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.