コード例 #1
0
 public ContactsPage() {
   wait = DriverManager.getInstance().getWait();
   driver = DriverManager.getInstance().getDriver();
   PageFactory.initElements(driver, this);
   try {
     wait.withTimeout(3, TimeUnit.SECONDS).until(ExpectedConditions.visibilityOf(contactsTitle));
   } catch (WebDriverException e) {
     throw new WebDriverException(e);
   } finally {
     wait.withTimeout(15, TimeUnit.SECONDS);
   }
 }
コード例 #2
0
 public OpportunitiesPage() {
   wait = DriverManager.getInstance().getWait();
   driver = DriverManager.getInstance().getDriver();
   PageFactory.initElements(driver, this);
   try {
     wait.withTimeout(TIMEOUT_MIN, TimeUnit.SECONDS)
         .until(ExpectedConditions.visibilityOf(opportunitiesTitle));
   } catch (WebDriverException e) {
     throw new WebDriverException(e);
   } finally {
     wait.withTimeout(TIMEOUT_NORMAL, TimeUnit.SECONDS);
   }
 }