2.1.4 • Published 7 years ago
xway v2.1.4
Xway
library for building xpath exspression.
Dependencies - None
Support
Xway Support UMD(Universal Module Definition), CommonJS, es moudles and regular script tag.
Installation
Using npm:
$ npm install --save xway
Usage
Import the file to your app (you can choose the way you want to import the file)
import { xpathCreator } from 'xway'
var xpathCreator = require('webStory').xpathCreator
<script src="xway"></script>
- build your simple builder
var builder = new xpathCreator(defaultValue?).builder();
- build builder with some custom element
var builder = new xpathCreator(defaultValue?).withCustomElements(["customElementName"]).builder();
- then use the builder to build your xpath
var builder = new xpathCreator(defaultValue?).builder();
var xpath = builder.div().div().withStyles({
display:"none"
})
.div()
.withClasses(["class1","class2"])
.input().build();
API Reference
License
MIT
2.1.4
7 years ago
2.1.3
7 years ago
2.1.2
7 years ago
2.1.1
7 years ago
2.1.0
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.2.2
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.7
9 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.8
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago