Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
feat: log yielded elements (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Gleb Bahmutov <[email protected]>
  • Loading branch information
badeball and bahmutov authored May 26, 2020
1 parent 5a88bf0 commit 1efe42e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const xpath = (subject, selector, options = {}) => {
log.consoleProps = () => {
return {
'XPath': selector,
'result': nodes.length === 1 ? nodes[0] : nodes
}
}

Expand Down

0 comments on commit 1efe42e

Please sign in to comment.