How to Select Random Option with Playwright

Situation My task was to create random test data for an application, which didn’t have an API for data creation. I simply chose to write e2e tests with Playwright and I only had to figure out how to select random values. Solution After googling, looking on Stackoverflow and asking ChatGPT - I managed to write the following code. import { test } from '@playwright/test' test('select random option', async ({ page }) => { // you can also use any other locator const select = page....

May 4, 2024 · 1 min · 131 words · Phuc Tran

Vimium - Reverse J/K to Browse Brave Vertical Tabs

How to reverse J/K in Vimium to browse Brave vertical tabs.

April 28, 2024 · 1 min · 74 words · Phuc Tran

Contact Information

Phuc Tran Europe, Austria, Vienna glup3.tran@gmail.com LinkedIn: Phuc Tran vCard download vCard QR Code

April 21, 2024 · Phuc Tran