docs: fix typos in some snippets (#18966)
docs: fix typos in some snippets (#18966)

Fixes #18898.
microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright