cobrateam / cobrateam/splinter

Finding partial text

Open
#608 5 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Python
Stars
2.7k
Forks
511
PR merge metrics
No merged PRs in 30d

Description

It is very common that you want to look for a snippet of text, rather than a text element that as a whole contains exactly what you look for; like when looking for a username on a page.

The current `browser.is_text_present` however only matches a text element 1:1. (and the documentation about this is not very clear that this is what is going on).

So if we have

```

Welcome, DeathSlayer!


```

Then `browser.is_text_present("DeathSlayer")` will return false, as will `browser.is_text_present("Welcome, DeathSlayer")` (because of the missing exclamation mark).

Could another command be introduced for this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.