Skip to content

Implement keyword for allTextContents #4763

@MarcinGmurczyk

Description

@MarcinGmurczyk

Is your feature request related to a problem? Please describe.
I often need to extract all text contents from a group of elements (such as all items in a list or all cells in a table column I've got from Get Elements) in my Robot Framework tests. Currently, this requires looping over elements and using multiple keywords, which makes test cases verbose and harder to maintain.

Describe the solution you'd like
I would like a new keyword in robotframework-browser that exposes Playwright’s Locator.all_text_contents() functionality. This keyword should return a list of all text contents for elements matching a locator, making it easy to assert or process multiple texts at once.

Describe alternatives you've considered
I've considered using existing keywords to loop through elements and extract their text one by one, but this approach is less efficient and makes the test code more complex and harder to read.

Additional context
This feature would align robotframework-browser with Playwright’s API and improve test readability and maintainability. For reference: https://playwright.dev/docs/api/class-locator#locator-all-text-contents

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions