eg: title now in span instead of div

This commit is contained in:
Ralf Vogler 2023-01-25 17:45:50 +01:00 committed by GitHub
parent 3b1b900d77
commit cecc54082f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ try {
await page.click('button:has-text("Continue")');
}
const title = await page.locator('h1 div').first().innerText();
const title = await page.locator('h1').first().innerText();
const game_id = page.url().split('/').pop();
db.data[user][game_id] ||= { title, time: datetime(), url: page.url() }; // this will be set on the initial run only!
console.log('Current free game:', title);