Skip to content

Commit

Permalink
fix: selector option.HasNotText (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongcha98 authored Oct 29, 2023
1 parent f5a413f commit 53597c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func newLocator(frame *frameImpl, selector string, options ...LocatorLocatorOpti
selector += fmt.Sprintf(` >> internal:has-text=%s`, escapeForTextSelector(option.HasText, false))
}
if option.HasNotText != nil {
selector += fmt.Sprintf(` >> internal:has-not-text=%s`, escapeForTextSelector(option.HasText, false))
selector += fmt.Sprintf(` >> internal:has-not-text=%s`, escapeForTextSelector(option.HasNotText, false))
}
if option.Has != nil {
has := option.Has.(*locatorImpl)
Expand Down

0 comments on commit 53597c2

Please sign in to comment.