-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- NEW: support for existingChromeBrowserUrl - NEW: hardcoded versions for playwright, pupetter, their extra variants, puppeteer-extra-plugin-stealth and nodejs - NEW: added convenience static class HB
- Loading branch information
1 parent
0a820f5
commit 2bfdf89
Showing
9 changed files
with
115 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.osiris.headlessbrowser; | ||
|
||
import com.osiris.headlessbrowser.exceptions.NodeJsCodeException; | ||
import com.osiris.headlessbrowser.windows.HWindow; | ||
import com.osiris.headlessbrowser.windows.PlaywrightWindow; | ||
import com.osiris.headlessbrowser.windows.WindowBuilder; | ||
|
||
import java.io.IOException; | ||
|
||
public class HB { | ||
public static HBrowser globalHBrowserInstace = new HBrowser(); | ||
|
||
/** | ||
* @see HBrowser#openWindow() | ||
*/ | ||
public static PlaywrightWindow newWin() { | ||
return new WindowBuilder(globalHBrowserInstace).buildPlaywrightWindow(); | ||
} | ||
|
||
/** | ||
* @see HBrowser#openWindowAndLoad(String) | ||
*/ | ||
public PlaywrightWindow newWin(String url) throws IOException, NodeJsCodeException { | ||
return globalHBrowserInstace.openWindow().load(url); | ||
} | ||
|
||
/** | ||
* @see HBrowser#openCustomWindow() | ||
*/ | ||
public WindowBuilder newWinBuilder() { | ||
return new WindowBuilder(globalHBrowserInstace); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.osiris.headlessbrowser; | ||
|
||
public class Versions { | ||
public static String NODEJS = "22.3.0"; | ||
public static String PLAYWRIGHT = "1.44.1"; | ||
public static String PLAYWRIGHT_EXTRA = "4.3.6"; | ||
public static String PUPPETEER = "22.11.1"; | ||
public static String PUPPETEER_EXTRA = "3.3.6"; | ||
public static String PUPPETEER_EXTRA_STEALTH_PLUGIN = "2.11.2"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters