You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using Get Text keyword using Webkit there's an additional new line character in the returned text. This has been reported to Playwright (microsoft/playwright#7698 and microsoft/playwright#5478) where suggestion is to use element.textContent instead.
If I'm not mistaken Get Text keyword returns element.innerText (
). I know this is a Webkit specific issue but I'd be interested to know what is the reason for use of innerText? Element.textContent would fix this (for us) but there's probably a good reason to use innerText?
To Reproduce
Steps to reproduce the behavior:
Set HTML content foo
${text} = Get Text id=important
On Chromium and Firefox ${text} == "foo"
On Webkit ${text} == "foo\n"
Expected behavior
I would expect the text content to be the same on Chromium, Firefox and Webkit.
Screenshots
Desktop (please complete the following information):
OS: macOs 15.1.1 (24B91)
Browser webkit
Version v19.1.0
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When using Get Text keyword using Webkit there's an additional new line character in the returned text. This has been reported to Playwright (microsoft/playwright#7698 and microsoft/playwright#5478) where suggestion is to use element.textContent instead.
If I'm not mistaken Get Text keyword returns element.innerText (
robotframework-browser/node/playwright-wrapper/getters.ts
Line 104 in 6a5116d
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the text content to be the same on Chromium, Firefox and Webkit.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: