Multiple Spaces

Not reproducible Issue #8339952

Details

Author
Titus F.
Created
Aug 1, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

driver is returning non-breaking spaces (\u00A0) for some reason

driver = Selenium::WebDriver.for :edge
driver.navigate.to "https://rawgit.com/seleniumhq/selenium/master/common/src/web/bodyTypingTest.html"
driver.keyboard.send_keys 'ab'
expect(driver.find_element(id: 'body_result').text).to eq('keypress keypress')
# => false

If you inspect the element in DOM explorer, there aren’t any whitespaces at all

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Title from “Multiple Spaces” to “Multiple Spaces”

    • Thank you for your feedback. Although you see “keypress keypress” as output on your browser, your sample doesn’t actually generate “keypress keypress” which you can see by using your browser’s dev tool.  

      Here is your generated HTML and Webdriver output : 

      HTML created : 
      <div id="body_result">
          &nbsp;
        keypress keypress </div>

      Webdriver output : 
      "\n   &nbsp;\n keypress keypress "

      Best regards,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

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

    Sign in