Replies: 2 comments 2 replies
-
|
Hi @braydend To be honest i've spent so many nights (you cannot imagine) on this project, rewrote it I've then had hard time with work.. losing most personal time or energy ... so there is a period of time where I'm not 100% confident of "why" I did things, and did rest my work on the guardrails (tests/sa/etc) I created before.. JS docs states for FrameLocator: Arguments Text to locate the element for. Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into one, turns line breaks into spaces and ignores leading and trailing whitespace. would you like to help on this ? contributing is easy here and I can help you if you want ! |
Beta Was this translation helpful? Give feedback.
-
|
Closing at #76 was merged |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm looking at using this project, but I've found that the
getByTextimplementation differs from the standard Playwright implementation in regards to how text matching occurs.If I'm not mistaken, the implementation of
getByTextin this project is attempting to make an exact string match. The standard Playwright API allows for passing in regular expressions in order to facilitate partial text matches. Is this a deliberate decision to only allow for exact string matches?Thanks so much for your work on this project!
Beta Was this translation helpful? Give feedback.
All reactions