예제 #1
0
 public boolean isShippingDealVisible() {
   return driver
       .findElement(By.cssSelector(".macysGlobalNavAdLink a"))
       .getAttribute("href")
       .contains("/m/campaign/free-shipping/free-shipping");
 }
예제 #2
0
 public void login() {
   if (isMainHeaderVisible()) {
     driver.findElement(By.id("globalMastheadSignIn")).click();
   }
 }