Skip to content

assert_text(text, selector) should have the option to accept a list of texts #3152

@mdmintz

Description

@mdmintz

assert_text(text, selector) should have the option to accept a list of texts.

Currently, text only accepts a string. If we want to perform assertions on multiple text substrings in the same selector/element, then we need a separate call to assert_text() for each one. It may simplify things to allow a list/tuple of substrings for the call.

Eg.

self.assert_text(["Apple", "Orange", "Banana"], "#fruit")

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions