phandom

PhantomJS Java DOM builder

License

License

BSD
GroupId

GroupId

com.jcabi.incubator
ArtifactId

ArtifactId

phandom
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

phandom
PhantomJS Java DOM builder
Project URL

Project URL

https://github.com/yegor256/phandom
Project Organization

Project Organization

Phandom
Source Code Management

Source Code Management

https://github.com/yegor256/phandom

Download phandom

How to add to project

<!-- https://jarcasting.com/artifacts/com.jcabi.incubator/phandom/ -->
<dependency>
    <groupId>com.jcabi.incubator</groupId>
    <artifactId>phandom</artifactId>
    <version>0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.jcabi.incubator/phandom/
implementation 'com.jcabi.incubator:phandom:0.4'
// https://jarcasting.com/artifacts/com.jcabi.incubator/phandom/
implementation ("com.jcabi.incubator:phandom:0.4")
'com.jcabi.incubator:phandom:jar:0.4'
<dependency org="com.jcabi.incubator" name="phandom" rev="0.4">
  <artifact name="phandom" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.jcabi.incubator', module='phandom', version='0.4')
)
libraryDependencies += "com.jcabi.incubator" % "phandom" % "0.4"
[com.jcabi.incubator/phandom "0.4"]

Dependencies

compile (4)

Group / Artifact Type Version
com.jcabi : jcabi-aspects jar 0.17.1
com.jcabi : jcabi-log jar 0.14.1
commons-io : commons-io jar 2.4
org.apache.commons : commons-lang3 jar 3.3.2

provided (2)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.14.4
xml-apis : xml-apis jar 1.4.01

test (1)

Group / Artifact Type Version
com.rexsl : rexsl-test jar 0.6

Project Modules

There are no modules declared in this project.

Managed by Zerocracy DevOps By Rultor.com

Build Status

PhantomJS Java DOM Builder

Phandom is a Java DOM builder that uses PhantomJS. For example, you have an HTML page that has to be renderable in a browser and you want to validate this fact:

import com.rexsl.test.XhtmlMatchers;
import org.hamcrest.MatcherAssert;
import org.junit.Test;
import org.phandom.Phandom;
public class HtmlTest {
  @Test
  public void testPageRenderability() {
    MatcherAssert.assertThat(
      new Phandom("<html><body><p>Hey!</p></body></html>").dom(),
      XhtmlMatchers.hasXPath("//p[.='Hey!']")
    );
  }
}

Download and Maven Dependency

Just use this dependency in Maven:

<dependency>
  <groupId>com.jcabi.incubator</groupId>
  <artifactId>phandom</artifactId>
  <version>0.2.2</version>
</dependency>

Or download latest release here.

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

mvn clean install -Pqulice

Got questions?

If you have questions or general suggestions, don't hesitate to submit a new Github issue.

Versions

Version
0.4
0.3
0.2.2
0.2.1
0.2
0.1.1