com.applitools.eyes.Logger.verbose()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(248)

本文整理了Java中com.applitools.eyes.Logger.verbose()方法的一些代码示例,展示了Logger.verbose()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.verbose()方法的具体详情如下:
包路径:com.applitools.eyes.Logger
类名称:Logger
方法名:verbose

Logger.verbose介绍

[英]Writes a verbose write message.
[中]写入详细的写入消息。

代码示例

代码示例来源:origin: com.applitools/eyes-common-java3

public void run() {
    logger.verbose("enter");
    pollingThread.run();
    logger.verbose("exit");
  }
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

@Override
  public void onRenderComplete() {
    logger.verbose("enter");
    Eyes.this.listener.onRenderComplete();
    logger.verbose("exit");
  }
};

代码示例来源:origin: com.applitools/eyes-selenium-java3

public Alert alert() {
  logger.verbose("Switching to alert...");
  Alert result = targetLocator.alert();
  logger.verbose("Done!");
  return result;
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

public void returnToOriginalPosition(PositionProvider positionProvider) {
    logger.verbose("Returning to original position...");
    positionProvider.restoreState(originalPosition);
    logger.verbose("Done!");
  }
}

代码示例来源:origin: com.applitools/eyes-common-java3

public void setRenderError(String renderId) {
  logger.verbose("enter - renderId: " + renderId);
  for (TaskListener listener : listeners) {
    listener.onTaskFailed(new Exception("Render Failed for " + this.getBrowserInfo() + " (renderId: " + renderId + ")"), this);
  }
  logger.verbose("exit - renderId: " + renderId);
}

代码示例来源:origin: com.applitools/eyes-connectivity-java4-jboss

@Override
public void completed(String response) {
  logger.verbose(uri + " - completed");
  listener.onDownloadComplete(response);
}

代码示例来源:origin: com.applitools/eyes-common-java3

public void close(IRenderingEyes eyes) {
  logger.verbose("adding eyes to close list: " + eyes);
  synchronized (this.eyesToCloseList) {
    if (!this.eyesToCloseList.contains(eyes)) {
      this.eyesToCloseList.add(eyes);
    }
  }
  notifyAllServices();
}

代码示例来源:origin: com.applitools/eyes-common-java3

@Override
void stopService() {
  logger.verbose("concurrency on stop = "+this.concurrentSession);
  super.stopService();
}

代码示例来源:origin: com.applitools/eyes-common-java3

private void collectAllFontFaceUris(CascadingStyleSheet cascadingStyleSheet, Set<URL> allResourceUris, URL baseUrl) {
  logger.verbose("enter");
  ICommonsList<CSSFontFaceRule> allFontFaceRules = cascadingStyleSheet.getAllFontFaceRules();
  for (CSSFontFaceRule fontFaceRule : allFontFaceRules) {
    getAllResourcesUrisFromDeclarations(allResourceUris, fontFaceRule, "src", baseUrl);
  }
  logger.verbose("exit");
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

private List<EyesScreenshot> getSubScreenshots(EyesWebDriverScreenshot screenshot, GetRegion getRegion) {
  List<EyesScreenshot> subScreenshots = new ArrayList<>();
  for (Region r : getRegion.getRegions(this, screenshot, true)) {
    logger.verbose("original sub-region: " + r);
    r = regionPositionCompensation.compensateRegionPosition(r, devicePixelRatio);
    logger.verbose("sub-region after compensation: " + r);
    EyesScreenshot subScreenshot = screenshot.getSubScreenshotForRegion(r, false);
    subScreenshots.add(subScreenshot);
  }
  return subScreenshots;
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

public WebElement activeElement() {
  logger.verbose("Switching to element...");
  WebElement element = targetLocator.activeElement();
  if (!(element instanceof RemoteWebElement)) {
    throw new EyesException("Not a remote web element!");
  }
  EyesRemoteWebElement result = new EyesRemoteWebElement(logger, driver, element);
  logger.verbose("Done!");
  return result;
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

public void contextClick(Coordinates where) {
  Location location = EyesSeleniumUtils.getPageLocation(where);
  logger.verbose("contextClick(" + location + ")");
  moveIfNeeded(where);
  addMouseTrigger(MouseAction.RightClick);
  logger.verbose("Location is " + mouseLocation);
  mouse.contextClick(where);
}

代码示例来源:origin: com.applitools/eyes-connectivity-java3-jersey2x

@Override
  public void failed(Throwable throwable) {
    // on fail
    if (!isSecondRetry) {
      logger.verbose("Async GET failed - entering retry");
      downloadString(uri, true, listener);
    } else {
      listener.onDownloadFailed();
    }
  }
});

代码示例来源:origin: com.applitools/eyes-selenium-java3

/**
 * Set the type of stitching used for full page screenshots. When the
 * page includes fixed position header/sidebar, use {@link StitchMode#CSS}.
 * Default is {@link StitchMode#SCROLL}.
 * @param mode The stitch mode to set.
 */
public void setStitchMode(StitchMode mode) {
  logger.verbose("setting stitch mode to " + mode);
  getConfig().setStitchMode(mode);
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

@Override
public void onDownloadComplete(String downloadedString, String contentType) {
  logger.verbose("DomCapture.onDownloadComplete");
  parseCSS(cssTreeNode, downloadedString);
  if (cssTreeNode.allImportRules != null && !cssTreeNode.allImportRules.isEmpty()) {
    cssTreeNode.downloadNodeCss();
  }
}

代码示例来源:origin: com.applitools/eyes-common-java3

private void startServices() {
  logger.verbose("enter");
  this.eyesOpenerService.start();
  this.eyesCloserService.start();
  this.renderingGridService.start();
  this.eyesCheckerService.start();
  this.servicesGroup.setDaemon(false);
  logger.verbose("exit");
}

代码示例来源:origin: com.applitools/eyes-connectivity-java3-jersey2x

@Override
  public void failed(Throwable throwable) {
    GeneralUtils.logExceptionStackTrace(logger, throwable);
    if (!isSecondRetry) {
      logger.verbose("Entering retry");
      downloadResource(url, true, listener);
    } else if (null != listener) {
      listener.onDownloadFailed();
    }
  }
});

代码示例来源:origin: com.applitools/eyes-selenium-java3

private PositionProvider createPositionProvider(WebElement scrollRootElement) {
  // Setting the correct position provider.
  StitchMode stitchMode = getStitchMode();
  logger.verbose("initializing position provider. stitchMode: " + stitchMode);
  switch (stitchMode) {
    case CSS:
      return new CssTranslatePositionProvider(logger, this.jsExecutor, scrollRootElement);
    default:
      return new ScrollPositionProvider(logger, this.jsExecutor, scrollRootElement);
  }
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

private PositionProvider getElementPositionProvider(WebElement scrollRootElement) {
  PositionProvider positionProvider = ((EyesRemoteWebElement) scrollRootElement).getPositionProvider();
  if (positionProvider == null) {
    positionProvider = createPositionProvider(scrollRootElement);
    ((EyesRemoteWebElement) scrollRootElement).setPositionProvider(positionProvider);
  }
  logger.verbose("position provider: " + positionProvider);
  currentFramePositionProvider = positionProvider;
  return positionProvider;
}

代码示例来源:origin: com.applitools/eyes-selenium-java3

private Region findBoundingBox(Dictionary<Integer, GetRegion> getRegions, ICheckSettings[] checkSettings) {
  RectangleSize rectSize = getViewportSize();
  logger.verbose("rectSize: " + rectSize);
  EyesScreenshot screenshot = new EyesWebDriverScreenshot(logger, driver,
      new BufferedImage(rectSize.getWidth(), rectSize.getHeight(), BufferedImage.TYPE_INT_RGB));
  return findBoundingBox(getRegions, checkSettings, screenshot);
}

相关文章