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] Click doesn't work properly if page is zoomed in #2768

Closed
VikramTiwari opened this issue Jun 30, 2020 · 2 comments
Closed

[BUG] Click doesn't work properly if page is zoomed in #2768

VikramTiwari opened this issue Jun 30, 2020 · 2 comments
Assignees

Comments

@VikramTiwari
Copy link

Context:

  • Playwright Version: 1.1.1
  • Operating System: Mac
  • Node version: 12
  • Browser: Chromium

Code Snippet

const { chromium } = require("playwright");

(async () => {
	const browser = await chromium.launchPersistentContext("./udd", {
		headless: false,
	});
	const page = await browser.newPage();
	await page.goto("http://google.com/");
	await page.mouse.click(884, 277);
})();

Describe the bug

  • Run the recipe, and close the dialog for mic permissions
  • go back to google.com and zoom into the page to 150%
  • run the code again and the click on mic icon won't work

The use case is related to this: #2497

@JoelEinbinder
Copy link
Contributor

The test doesn't quite work, because the coordinates change once the page is zoomed. But I can repro that we still can't click the element at the proper coordinates. Suspecting an upstream bug in chromium. No test because we don't have zoom support yet.

@dgozman
Copy link
Contributor

dgozman commented Nov 23, 2020

Closing in favor of #2497.

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

3 participants