Skip to content

Add method: assert_title_contains(substring) #1519

@mdmintz

Description

@mdmintz

Add method: assert_title_contains(substring)

Currently, there already exists self.assert_title(title), but that requires the title to be an exact match. It may be useful to have a similar method where a substring match is enough.

self.assert_title_contains(substring)

The current workaround is to do something like this:

self.assert_true(substring in self.get_page_title()) 

Simple solutions are better.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions