Releases: mojotech/pioneer
Releases · mojotech/pioneer
Release list
v0.11.7
v0.11.0
Features
Driveris now exposed on the world.getItemClassis now available to lookup aitemClassat instantiation time of a List.- Finding by text now respects the internal global.timeout instead of failing right away.
- Test runs now have a clean output options (omitting message about the configPath)
- Enable the ability to toggle the visibility of the extra test run output, such as duration.
Fixes
- Update chai version to fix peer dependency issue
- Update todo mvc test link
- Doc consistency fixes
v0.10.6-pre
Fixes
- Adds internal wait to text based finds.
v0.10.5
v0.10.4
v0.10.3
v0.10.2
v0.10.0
Breaking Changes
findAllallows you to find a list of matching elements on a page. It returns a promise that resolves with a new Widget List with the same root as the widget that invokedfindAll. TheitemSelectorof the newWidget.Listwill be the selector argument passed.submitSelectorno longer takes a node input. If you would like to use a submit selector other than[type="submit"]then you can override thesubmitSelectormethod
Widget.Form
readAllnow callsgetValueon each field as opposed toread
v0.9.0
Breaking Changes
- Widget
fillmethod now clears the element before sending the value - Pioneer no longer looks for a
.pioneer.jsonfile to read configuration options from. Instead it will look for apioneer.jsonfile.
Widget
Helpers
hasClasswill test the existence of the provided class name on the DOM node of the Widget. It takes a hash that can contain an optional selector. If you only pass a string to the method and not an object then it will use the string as the class name. It returns a promise that will resolve withtrueorfalse.sendKeysnow supports hash style arguments, including an optional selector.clearcalls the webdriver clear method. It takes a hash that supports an optional selector to scope theclearoperation. If only a string is passed to clear, and not an object then it will use it as a selector for thefindoperation. It returns a promise that resolves with a widget.
new this.Widget({
root: “.some-div”
}).sendKeys({
selector: “input”,
keys: [
"wow",
Driver.Key.SPACE,
"pioneer",
Driver.Key.ENTER
]
})Static Methods
- Static methods can be used for situations where you do not want to declare a new Widget to do something.
- Static methods introduced for the following widget helpers:
- click
- fill
- hover
- doubleClick
- read
- isPresent
- isVisible
- getAttribute
- getValue
- getText
- getInnerHTML
- getOuterHTML
- hasClass
- sendKeys
- clear
Command Line Flags
- Version:
--versionor-vmay now be passed to display the current version of Pioneer
Driver
driver.visitaliased todriver.get
Format
- pioneer format no longer displays the filename and line number of each scenario and step. Instead it will display the feature file at the beginning of each feature