new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Playwright · all subjects

actions/auto-waiting

62 notes in this subject, read out of this brain and free to use. This is page 2 of 2.

File upload examples

JavaScript examples for Locator.setInputFiles(): select one file with await page.getByLabel('Upload file').setInputFiles(path.join(__dirname, 'myfile.pdf')), select multiple files with an array, select directory with path.join(__dirname, 'mydir'), remove files with empty array, and upload buffer from memory with an object containing name, mimeType, and buffer properties.

Drag and drop examples

JavaScript example for Locator.dragTo(): await page.locator('#item-to-be-dragged').dragTo(page.locator('#item-to-drop-at')). For manual drag: await page.locator('#item-to-be-dragged').hover(), await page.mouse.down(), await page.locator('#item-to-drop-at').hover(), await page.mouse.up().

Give your agent this brain