-
Notifications
You must be signed in to change notification settings - Fork 41
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
Match Dblclick with Playwright's behavior #469
Comments
Nice catch! It doesn't seem related to xk6-browser/common/element_handle.go Lines 242 to 244 in dbede12
It should call |
@ankur22 Thanks Ankur for helping me find the problems in the locator tests 🙇 @imiric No, it's not because of not calling Ankur, shouldn't the server needs to listen for the I've then used the |
@inancgumus I wasn't clear in the original description. The Playwright script: const { test, chromium } = require('@playwright/test');
test.describe('Editing', () => {
test('Type login creds', async () => {
const browser = await chromium.launch({ headless: false });
const ctx = await browser.newContext();
const page = await ctx.newPage();
await page.goto("https://test.k6.io/browser.php");
const l = page.locator('#counter-button');
await new Promise(resolve => setTimeout(resolve, 1000));
l.dblclick();
await new Promise(resolve => setTimeout(resolve, 10000));
await browser.close();
});
}); The outcome is that the I'm not sure what you mean here, could you elaborate a bit?:
|
dblclick
on locator
only clicks oncedblclick
only clicks once
dblclick
only clicks once
TODO:
xk6-browser docs imply that this
dblclick
issue is about locators, however, it's the behavior in our extension in general.Tested against: dbede12
The method
dblclick
onlocator
only clicks once.In the below code it works against
localhost:8080
, which is a test server that can be found here with instructions on how to run it locally: https://github.com/ankur22/testserver.I was expecting the counter on this test page to go up to
2
but it only went up to1
. When testing with PW i was able to get the expected count of2
.Tasks
The text was updated successfully, but these errors were encountered: