启用时不明确的警告-XPrint:typer

时间:2017-06-06 10:17:12

标签: scala scalac

在尝试澄清项目中的隐式转换时,我已启用-XPrint:typer编译器选项。 结果我列出了很多警告,其中一些很清楚,但一堆根本不清楚。 此类不明确警告的完整警告输出示例:

Warning:scalac: package me.enreach.qa.pages.adserver.adtech {
  import me.enreach.qa.Automation;
  import org.openqa.selenium.{By, WebDriver};
  import scala.util.{Try, Success};
  object AdtechLoginPage extends AnyRef with me.enreach.qa.pages.adserver.adtech.AdtechCommon {
    def <init>(): me.enreach.qa.pages.adserver.adtech.AdtechLoginPage.type = {
      AdtechLoginPage.super.<init>();
      ()
    };
    private[this] val URL: String = "https://console.oneadserver.aol.de/h2/set.do";
    <stable> <accessor> def URL: String = AdtechLoginPage.this.URL;
    private[this] val userName: String = "*******@enreach.me";
    <stable> <accessor> def userName: String = AdtechLoginPage.this.userName;
    private[this] val password: String = "*******";
    <stable> <accessor> def password: String = AdtechLoginPage.this.password;
    def open(implicit driver: org.openqa.selenium.WebDriver): org.openqa.selenium.WebElement = {
      AdtechLoginPage.this.go.to(AdtechLoginPage.this.URL)(driver);
      AdtechLoginPage.this.waitUntilVisibleByXPath("//div[@id=\'login-container\']//input[@placeholder=\'Username\']", 5000)(driver)
    };
    def login(implicit driver: org.openqa.selenium.WebDriver): org.openqa.selenium.WebElement = {
      AdtechLoginPage.this.textField(AdtechLoginPage.this.xpath("//div[@id=\'login-container\']//input[@placeholder=\'Username\']"))(driver, org.scalactic.source.Position.apply("AdtechLoginPage.scala", "/ssd2/projects/ADMP/src/test/scala/me/enreach/qa/pages/adserver/adtech/AdtechLoginPage.scala", 23)).clear();
      AdtechLoginPage.this.textField(AdtechLoginPage.this.xpath("//div[@id=\'login-container\']//input[@placeholder=\'Username\']"))(driver, org.scalactic.source.Position.apply("AdtechLoginPage.scala", "/ssd2/projects/ADMP/src/test/scala/me/enreach/qa/pages/adserver/adtech/AdtechLoginPage.scala", 24)).value_=(AdtechLoginPage.this.userName);
      AdtechLoginPage.this.click.on(AdtechLoginPage.this.xpath("//input[@type=\'submit\']"))(driver);
      AdtechLoginPage.this.waitUntilVisibleByXPath("//input[@type=\'password\']", 2000)(driver);
      AdtechLoginPage.this.pause(500);
      driver.findElement(org.openqa.selenium.By.xpath("//input[@type=\'password\']")).clear();
      driver.findElement(org.openqa.selenium.By.xpath("//input[@type=\'password\']")).sendKeys(AdtechLoginPage.this.password);
      AdtechLoginPage.this.click.on(AdtechLoginPage.this.xpath("//input[@type=\'submit\']"))(driver);
      AdtechLoginPage.this.waitUntilVisibleByXPath("//div[@class=\'navLogoutIcon\']", 6000)(driver)
    }
  }
}

我完全不清楚这些警告究竟是什么意思。你能建议吗?

0 个答案:

没有答案