Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matches should work also with multiline strings #3292

Closed
simonmeggle opened this issue Nov 29, 2023 · 2 comments
Closed

Matches should work also with multiline strings #3292

simonmeggle opened this issue Nov 29, 2023 · 2 comments

Comments

@simonmeggle
Copy link
Contributor

When Get Text returns me

HOME
Workbox

then

Get Text element matches HOME
Get Text element matches Workbox
Get Text element matches HOME.*Workbox

It would be great if there would be some support out of the box for result strings which are multiline.

(See also https://robotframework.slack.com/archives/C015KB1QSDN/p1701255745908669)

@Snooz82
Copy link
Member

Snooz82 commented Nov 29, 2023

As written in Slack adding \n instead of the dot would already now work.

I looked for the flags and we will add re.DOTALL flag to matches

@aaltat
Copy link
Member

aaltat commented Nov 29, 2023

Belongs to AssertionEngine side: MarketSquare/AssertionEngine#176 closing this one.

@aaltat aaltat closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants