LIST

run taiko with brave persisting browser state

npm i taiko export TAIKO_BROWSER_PATH="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser" npx taiko run.js --observe run.js const {openBrowser, goto, click, write, into, textBox} = require('taiko'); const assert = require('assert').strict; (async () => { try { await openBrowser({ args: [ "--user-data-dir=/tmp/taiko/brave-music-float", "--profile-directory=Default", ] }); let title = `some song`; let titleEncoded = encodeURIComponent(title); await goto(`https://music.youtube.com/search?q=${titleEncoded}`); } catch (error) { console.error(error); // await screenshot({path: 'error.png'}) } finally { // closeBrowser(); } })(); I also tried to get it working in my current open browser...

June 16, 2023