package io.swarmauto.driverextended;

import org.openqa.selenium.WebDriver;

public abstract class AbstractPageObject implements PageObject{

    protected WebDriver driver;
    protected Report report;

    @Override
    public void navigate(WebDriver webDriver, String page) {
        webDriver.navigate().to(page);
    }

    @Override
    public void navigate(WebDriver webDriver) {
        navigate(webDriver,getPageUrl());
    }

    @Override
    public void navigate(String s) {
        navigate(driver,s);
    }

    @Override
    public void navigate() {
        navigate(getPageUrl());
    }

    @Override
    public String getPageUrl() {
        return getBaseUrl() + getPath();
    }

    @Override
    public DynamicElement getDynamicElement() {
        return new DynamicElement(driver,report);
    }
}

@@ -70,16 +70,60 @@
 river;%0A%0A
+/**%0A * Created by harolddost on 4/5/16.%0A */%0A
 public a
@@ -185,23 +185,21 @@
 %0A%0A    pr
-otec
+iva
 te
-d
  WebDriv
@@ -219,15 +219,13 @@
   pr
-otec
+iva
 te
-d
  Rep

Revert "Change access of attributes in AbstractPageObject to protected"