'How to start Playwright test with data from console?

We have command npx playwright test tests/my-test.spec.js

But how to set data for this test by console?

For example i need to set variables for URL (google.com) and CountOfBlocks (12)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source