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

16
LINES

< > BotCompany Repo | #1032303 // playwrightOpenPage

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

Uses 64664K of libraries. Click here for Pure Java version (3865L/22K).

!include once #1032300 // Playwright

static Page playwrightOpenPage(Playwright playwright, S url) {
  Page page = playwrightChromium(playwright).newPage();
  page.navigate(url);
  ret page;
}

static Page playwrightOpenPage(Browser browser, Page page default null, S url) {
  if (page == null)
    page = browser.newPage();
  time "navigate" {
    page.navigate(url);
  }
  ret page;
}

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: #1032303
Snippet name: playwrightOpenPage
Eternal ID of this version: #1032303/7
Text MD5: 07663d3c84d5c54508a850651f0f0863
Transpilation MD5: f2ec8ce2e8a5bf28c3eaaee49484d742
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-07 18:24:43
Source code size: 403 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 109 / 171
Version history: 6 change(s)
Referenced in: [show references]