Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Yeah, that 700 hundred lines I mentioned is basically this:

  •  launch Chromium (without Playwright) pointing at the game's edit page URL and using a custom storage directory. log in, or be logged in already. close window
  • scan that storage directory for relevant cookies, extract them
  • launch Chromium via Playwright, pass the cookies to the context, open the game's edit page URL, find the text editor, switch to HTML mode, paste, click save and open the game's page to verify

I approached it relying on my prior experience building end-to-end browser tests but the issue is that Cloudflare's bot detection on the login page picks up on Playwright, so I wasn't able to get to the login form in a Playwright-controlled window, just the CAPTCHA and it was being stuck in a rejection loop. Hence this wacky (and hacky) two-step process, which would be needlessly complicated to maintain. I'd rather just have an API, so I'm sticking with manual copy/paste until one materializes and binned the Playwright attempt.