Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1032301 // tempPlaywright - be sure to clean it up

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3896L) is out of date.

!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();
}

Author comment

Began life as a copy of #1032268

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032301
Snippet name: tempPlaywright - be sure to clean it up
Eternal ID of this version: #1032301/10
Text MD5: 4997de599d5a8727a515924847469413
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-05 18:15:38
Source code size: 772 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 225
Version history: 9 change(s)
Referenced in: [show references]