Skip to content

[BUG] action works on Safari, but fails in WebKit #5894

Closed

Description

Context:

Code Snippet

const { webkit } = require('playwright');

(async () => {
  const browser = await webkit.launch({
    headless: false
  });
  const context = await browser.newContext();

  // Open new page
  const page = await context.newPage();

  // Go to https://thomas-guettler.de/htmx-swap-err-webkit/page.html
  await page.goto('https://thomas-guettler.de/htmx-swap-err-webkit/page.html');

  // Click textarea[name="comment"]
  await page.click('textarea[name="comment"]');

  // Fill textarea[name="comment"]
  await page.fill('textarea[name="comment"]', 'foobar');

  // Click text=Save
  await page.click('text=Save');

  // ---------------------
  await context.close();
  await browser.close();
})();

Describe the bug

If I press "Save" nothing happens. But finally you should see "Great, delicious food is on its way to you"

This works with chromium. And it works with Safari on MacOS.

Please let me know if you need more info.

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions