Michael Hu

Results 2 comments of Michael Hu

I coded a [workaround](https://gitlab.com/eazypaper/browsertabswitcher/-/blame/main/node_modules/selenium-webdriver/lib/http.js?ref_type=heads#L50-59) for Selenium, but it won't work in the general case. It illustrates the strategy of patching a dependent library to use static require() calls instead of...

I've implemented a better solution that does not require any library patching: replace Selenium with Puppeteer - [see code for details](https://gitlab.com/eazypaper/browsertabswitcher/-/blame/main/BrowserDriver.ts#L47-55). Unfortunately, [Playwright is not compatible with Bun](https://github.com/oven-sh/bun/issues/15679) either, but...