Skip to content

Commit

Permalink
debug addExtensions crx
Browse files Browse the repository at this point in the history
  • Loading branch information
ferpasri committed Nov 19, 2024
1 parent 3dfa3ed commit c0ed0fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ private static RemoteWebDriver startChromeDriver(String chromeDriverPath,
.usingAnyFreePort()
.build();
ChromeOptions options = new ChromeOptions();
System.out.println("--load-extension=" + extensionPath);
options.addArguments("--load-extension=" + extensionPath);

System.out.println("EXTENSION: " + extensionPath + "/web-extension.crx");

options.addExtensions(new File(extensionPath + "/web-extension.crx"));
options.addArguments("--disable-infobars");
if(fullScreen) {
options.addArguments("--start-maximized");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ public WdElement(Map<String, Object> packedElement, WdRootElement root, WdElemen

List<Map<String, Object>> wrappedChildren =
(List<Map<String, Object>>) packedElement.get("wrappedChildren");

System.out.println("DEBUG wrappedChildren: " + wrappedChildren.size());

for (Map<String, Object> wrappedChild : wrappedChildren) {
WdElement child = new WdElement(wrappedChild, root, this);
if (!Constants.hiddenTags.contains(child.tagName) &&
Expand Down

0 comments on commit c0ed0fe

Please sign in to comment.