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]: Initial execution of Playwright.create() is relatively slow #1522

Closed
ptrdom opened this issue Mar 23, 2024 · 1 comment
Closed

[Bug]: Initial execution of Playwright.create() is relatively slow #1522

ptrdom opened this issue Mar 23, 2024 · 1 comment

Comments

@ptrdom
Copy link

ptrdom commented Mar 23, 2024

Version

1.42.0

Steps to reproduce

  1. Clone my repo https://github.com/ptrdom/playwright-selenium-comparison.
  2. Run sbt test.
  3. Observe execution times.

Can also check logs in https://github.com/ptrdom/playwright-selenium-comparison/actions.

Expected behavior

I would expect the first execution to not be significantly slower.

Actual behavior

First execution of Playwright test is significantly slower than second one, and also in comparison slower than Selenium.

Environment

The linked repository has GitHub actions running on latest versions of all available operating systems.

@yury-s
Copy link
Member

yury-s commented Mar 25, 2024

On the first invocation the method will extract playwright driver into a temp directory. If performance of the method is critical, you can use preinstalled driver or your own loader, see this comment.

Folding into #1196

@yury-s yury-s closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants