An html paragraph contains the text Join {text} Now, or Join {text} Today. The xpath locator I created for this does not work. How do I make it work ?
//p[matches(text(), 'Join.*/^Today$/|/^Now$/')]
An html paragraph contains the text Join {text} Now, or Join {text} Today. The xpath locator I created for this does not work. How do I make it work ?
//p[matches(text(), 'Join.*/^Today$/|/^Now$/')]
I created one on the http://regexr.com/. Is stayed like this: \bJoin.*(\bToday|\bNow)
. Try it.
© 2022 - 2024 — McMap. All rights reserved.