package org.andidev.webdriverextension;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;

public abstract class PageObject implements Openable {

    private WebDriver driver;

    public PageObject(WebDriver driver) {
        this.driver = driver;
        // Init page elements
        PageFactory.initElements(new DefaultHtmlTagFieldDecorator(driver), this);
    }

    public WebDriver getDriver() {
        return driver;
    }

    public void setDriver(WebDriver driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return null;
    }

    public boolean isOpen() {
        try {
            assertIsOpen();
            return true;
        } catch (Error e) {
            return false;
        }
    }
}

@@ -242,32 +242,57 @@
 river driver) %7B%0A
+        // Set WebDriver%0A
         this.dri
@@ -301,24 +301,25 @@
 r = driver;%0A
+%0A
         // I
@@ -326,20 +326,15 @@
 nit 
-page element
+HtmlTag
 s%0A  

Comment fix