package io.swarmauto.driverextended;

import org.openqa.selenium.WebDriver;

/**
 * Created by harolddost on 4/5/16.
 */
public abstract class AbstractPageObject implements PageObject{

    private WebDriver driver;
    private 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);
    }
}

@@ -185,21 +185,23 @@
 %0A%0A    pr
-ivate
+otected
  WebDriv
@@ -221,13 +221,15 @@
   pr
-ivate
+otected
  Rep

Change access of attributes in AbstractPageObject to protected