WebDriver returning NBSP

Duplicate Issue #11139269 • See Issue #11004541

Details

Author
Zach M.
Created
Mar 2, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Duplicates
See progress on Bug #11004541
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When returning text from an element, if the text contains an nbsp character, WebDriver returns the text with the included nbsp character (\u00a0) instead of converting it to a regular space character (\u0020). Other drivers (Chrome, FF, IE 10+11) return the text with the nbsp characters converted to regular spaces. I have had to code in some text replacement routines to combat this issue until it is fixed.

Here is a fiddle with a table that contains 1 row and 2 columns. If you try to return the text from the second column (with id = HelloWorld), the nbsp will be returned instead of a normal space.

https://jsfiddle.net/5yk3ejtx/

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Status to “Duplicate”

    • Hi Zach,

      Can you verify if what you are seeing while using WebDriver is the same or similar issue as this other bug report?

      https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11004541/

      If you disagree, let me know, and I will keep these issues separate.

      Appreciate the support,

      The MS Edge Team

    • This bug has marked as duplicate. Please follow the parent issue to get new updates.

    • Changed Status from “Duplicate”

    • Hi Steven,

      Thanks for looking into this issue. While the two issues are similar in nature (they may even be failing at the same point in the Edge code), I do believe they are different. In the one you linked, multiple spaces are being converted by the EdgeDriver (or Edge itself) into a single nbsp character before being returned. In my case, we purposely put nbsp characters into our HTML and those are being returned as nbsp characters instead of being returned as a single space character (or multiple space characters in the event of multiple nbsp characters). This behavior differs from every other driver for every other browser we have used in testing (Chrome, FF, IE 8, 10, 11). In both cases, there is a conversion that is either not happening or is happening when it shouldn’t be. Please do let me know if you decide to keep this as a duplicate and let me know the status of a fix for this issue. Again, thanks for looking into this.

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi Zach,

      The other bug report is not very clear.  The original report was not what ended being the issue.  The issue was that Edge is not doing any conversion of the nbsp’s.

      Sorry about not making this clear in my previous comment.  I had forgotten the original bug report was not what was actually happening.

      I do plan to duplicate this issue to that issue as that issue being worked on right now.  Again, if you disagree given this additional information, please let me know.

      Thanks again for the submission and support,

      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Duplicate”

    • This bug has marked as duplicate. Please follow the parent issue to get new updates.

    You need to sign in to your Microsoft account to add a comment.

    Sign in