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

"byText" and "withText" conditions should ignore non-breakable spaces #597

Closed
Maria-Fedorova-sb opened this Issue Sep 8, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@Maria-Fedorova-sb

Maria-Fedorova-sb commented Sep 8, 2017

<span>Hello&nbspworld</span> cannot be found by $(byText("Hello world")) or $(withText("Hello world"))

@vinogradoff

This comment has been minimized.

Show comment
Hide comment
@vinogradoff

vinogradoff Sep 8, 2017

Member
Member

vinogradoff commented Sep 8, 2017

@Maria-Fedorova-sb

This comment has been minimized.

Show comment
Hide comment
@Maria-Fedorova-sb

Maria-Fedorova-sb Sep 11, 2017

Yea. It's not working too.

      Element not found {with text: Hello&nbsp;world}
      Expected: exist
      Timeout: 4 s.
      Caused by: NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":".//*/text()[contains(normalize-space(.), "Hello&nbsp;world")]/parent::*"}

Maria-Fedorova-sb commented Sep 11, 2017

Yea. It's not working too.

      Element not found {with text: Hello&nbsp;world}
      Expected: exist
      Timeout: 4 s.
      Caused by: NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":".//*/text()[contains(normalize-space(.), "Hello&nbsp;world")]/parent::*"}
@Maria-Fedorova-sb

This comment has been minimized.

Show comment
Hide comment
@Maria-Fedorova-sb

Maria-Fedorova-sb Sep 11, 2017

only \u00A0 works well

Maria-Fedorova-sb commented Sep 11, 2017

only \u00A0 works well

@asolntsev asolntsev self-assigned this Jan 6, 2018

asolntsev added a commit that referenced this issue Jan 6, 2018

asolntsev added a commit that referenced this issue Jan 7, 2018

Merge pull request #669 from codeborne/support-nonbreakable-space-in-…
…xpath

#597 support non-breakable spaces in `byText` and `withText`

@asolntsev asolntsev added this to the 4.10 milestone Jan 7, 2018

@asolntsev

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Jan 7, 2018

Contributor

Fixed in PR #669

Contributor

asolntsev commented Jan 7, 2018

Fixed in PR #669

@asolntsev asolntsev closed this Jan 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment