!include once #1032300 // Playwright static Playwright tempPlaywright() ctex { print("Creating Playwright instance"); fixContextClassLoader(); // HUNTING THE STICKY LIBRARY BUG /*Class driverJarClass = classForName("com.microsoft.playwright.impl.DriverJar"); print(+driverJarClass); S platformDir = cast call(driverJarClass, "platformDir"); print(+platformDir); ClassLoader classloader = Thread.currentThread().getContextClassLoader(); print(+classloader); print(parentMap := rcallOpt parentMap(classloader)); ClassLoader parent = classloader.getParent(); print(+parent); URI originalUri = classloader.getResource("driver/" + platformDir).toURI(); print(+originalUri);*/ ret Playwright.create(); }