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).

1  
!include once #1032300 // Playwright
2  
3  
static Page playwrightOpenPage(Playwright playwright, S url) {
4  
  Page page = playwrightChromium(playwright).newPage();
5  
  page.navigate(url);
6  
  ret page;
7  
}
8  
9  
static Page playwrightOpenPage(Browser browser, Page page default null, S url) {
10  
  if (page == null)
11  
    page = browser.newPage();
12  
  time "navigate" {
13  
    page.navigate(url);
14  
  }
15  
  ret page;
16  
}

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: 112 / 176
Version history: 6 change(s)
Referenced in: [show references]