package ru.stqa.pft.adressbook.appmanager;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;


/**
 * Created by Mari on 4/17/17.
 */
public class NavigationHelper extends HelperBase {



  public NavigationHelper(WebDriver wd) {
    super(wd);
  }

  public void Gotogrouppage() {
    click(By.linkText("groups"));
  }

  public void returnHomepage() {
    click(By.linkText("home"));
  }
}

@@ -287,32 +287,209 @@
 togrouppage() %7B%0A
+    if (elementIsPresent(By.tagName(%22h1%22))%0A      && wd.findElement(By.tagName(%22h1%22)).getText().equals(%22Groups%22)%0A      && elementIsPresent(By.name(%22new%22))) %7B%0A      return;%0A    %7D%0A
     click(By.lin
@@ -540,24 +540,84 @@
 omepage() %7B%0A
+    if (elementIsPresent(By.id(%22maintable%22)))%0A      return;%0A
     click(By

test optimization