Skip to content
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

[BUG] In Chromium using fill on textarea with long text, takes more than 5 seconds (and destroys something in background) #23077

Closed
gladykov opened this issue May 17, 2023 · 4 comments

Comments

@gladykov
Copy link

gladykov commented May 17, 2023

System info

  • Playwright Version: v1.33
  • Operating System: Endevour OS (Kernel 6.3) + Ubuntu 22.04.2 LTS
  • Browser: Chromium

Source code

fill.zip

Steps

  • In runMe.ts setup root variable with path, where you extracted files
  • Run

Expected

  • Textarea on index.html is filled immediately after file contents are read into memory

Actual

  • It takes 7 seconds on my laptop to fill it with 28KB of text

And now the funny part, for which I do not have test case: Above creates some unexpected state, which causes failure of web page elements (in publishing Confluence page flow):

  • clicking Publish will cause web page error "Unable to publish"
  • there is no clear indication of failure in console
  • network requests are firing
  • looks like regression in Confluence software, as it worked properly for one month
  • Still bug exists ONLY when using playright fill method + big text

Notes

  • Both above bugs will not occur when using shorter text with fill method
  • When same text will be pasted (Ctrl+V) manually, during open playwright browser session, publish action will work properly (so it is not caused by combination of browser flags and web page)
  • Our real world scenario use case uses iframes
  • Using type method to type 28KB in textarea had even more destructive effect, as other buttons of UI stopped working (but not all of them, which is again something very peculiar)

TL:DR; Long text takes too long to fill textarea when using fill method and I suspect it creates some overflow state, which brakes some UI elements bindings; Using type method broke even more.

@dgozman
Copy link
Contributor

dgozman commented May 17, 2023

I can reproduce. Input.insertText CDP command takes very long time. Needs debugging upstream.

@dgozman
Copy link
Contributor

dgozman commented Jun 2, 2023

@pavelfeldman
Copy link
Member

Why was this issue closed?

Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable.

Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated.

@gladykov
Copy link
Author

Workaround for headless mode on Linux, by using Ctrl + V : #8114 (comment)

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

No branches or pull requests

3 participants