diff --git a/htmlelements-junit-example/pom.xml b/htmlelements-junit-example/pom.xml new file mode 100644 index 0000000..26bbc1e --- /dev/null +++ b/htmlelements-junit-example/pom.xml @@ -0,0 +1,37 @@ + + + + htmlelements-examples + ru.yandex.qatools.examples + 1.10-SNAPSHOT + + 4.0.0 + + htmlelements-junit-example + + + 1.11-SNAPSHOT + + + + + org.seleniumhq.selenium + selenium-java + 2.31.0 + + + junit + junit + 4.11 + + + ru.yandex.qatools.htmlelements + htmlelements-all + ${htmlelements.version} + + + + + \ No newline at end of file diff --git a/htmlelements-thucydides-example/pom.xml b/htmlelements-thucydides-example/pom.xml index 066ae4a..9983cea 100644 --- a/htmlelements-thucydides-example/pom.xml +++ b/htmlelements-thucydides-example/pom.xml @@ -15,7 +15,7 @@ 0.9.122 - 1.10 + 1.11-SNAPSHOT diff --git a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/BlockPageObject.java b/htmlelements-thucydides-example/src/main/java/my/company/web/pages/BlockPageObject.java deleted file mode 100644 index 677ad70..0000000 --- a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/BlockPageObject.java +++ /dev/null @@ -1,24 +0,0 @@ -package my.company.web.pages; - -import com.google.common.base.Predicate; -import net.thucydides.core.pages.PageObject; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import ru.yandex.qatools.htmlelements.loader.decorator.HtmlElementDecorator; - -/** - * @author Artem Eroshenko eroshenkoam - * 5/6/13, 5:14 PM - */ -public class BlockPageObject extends PageObject { - - public BlockPageObject(final WebDriver driver) { - super(driver, new Predicate() { - @Override - public boolean apply(PageObject pageObject) { - PageFactory.initElements(new HtmlElementDecorator(driver), pageObject); - return true; - } - }); - } -} diff --git a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/MainPage.java b/htmlelements-thucydides-example/src/main/java/my/company/web/pages/MainPage.java index 56a8936..b0faaa4 100644 --- a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/MainPage.java +++ b/htmlelements-thucydides-example/src/main/java/my/company/web/pages/MainPage.java @@ -4,6 +4,7 @@ import net.thucydides.core.annotations.DefaultUrl; import org.openqa.selenium.WebDriver; import org.openqa.selenium.support.FindBy; +import ru.yandex.qatools.htmlelements.thucydides.BlockPageObject; /** * @author Artem Eroshenko eroshenkoam diff --git a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/SearchPage.java b/htmlelements-thucydides-example/src/main/java/my/company/web/pages/SearchPage.java index 5435c1f..0d41676 100644 --- a/htmlelements-thucydides-example/src/main/java/my/company/web/pages/SearchPage.java +++ b/htmlelements-thucydides-example/src/main/java/my/company/web/pages/SearchPage.java @@ -5,6 +5,7 @@ import net.thucydides.core.annotations.DefaultUrl; import org.openqa.selenium.WebDriver; import org.openqa.selenium.support.FindBy; +import ru.yandex.qatools.htmlelements.thucydides.BlockPageObject; /** * @author Artem Eroshenko eroshenkoam diff --git a/pom.xml b/pom.xml index ee37eb4..895e73f 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,7 @@ htmlelements-thucydides-example + htmlelements-junit-example @@ -33,5 +34,63 @@ https://github.com/yandex-qatools/htmlelements-examples/issues + + + AlexanderTolmachev + Alexander Tolmachev + + + eroshenkoam + Artem Eroshenko + + + artkoshelev + Artem Koshelev + + + lanwen + Kirill Merkushev + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.0 + + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9 + + + attach-javadocs + + aggregate-jar + + + + + + \ No newline at end of file