[Chore] Update dependency wd to version 1.x #45
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request update dependency wd from version ^0.2.21 to 1.1.3
Changelog
1.1.3 / 2017-01-27
Move mkdirp to full deps
1.1.2 / 2017-01-27
Add inlineJS back to utils.js
Shouldn't have been removed. It's still being used by setup.js
Replace deprecated 'node-uuid' with 'uuid'
Build browser scripts after install
Because commands.js was importing scripts using __dirname, this causes problems when you bundle 'wd' into an electron app because the __dirname won't point to the correct directory. Solution is to write an npm script that's fired after install that takes the contents of the browser scripts and then builds them as files that export the Javascript as a string.
modify setOrientation() in api.md
updated archiver
Use `tmpdir` to solve Node 7 deprecation
1.1.1 / 2016-12-13
Replaced `<obj> instanceof Array` with `Array.isArray()`
Fixed issue [setOrientation("landscape")]/ [setOrientation("portrait")] Error response status: 777
I've been seeing a bug where at certain points in my tests, code to
retrieve elements like this:
```
driver.elementsByAccessibilityId("foo bar")
```
would throw an error:
```
[elementsByAccessibilityId("foo bar")] Response value field is not an Array.
```
After looking into the for wd code, I could see this was happening in
`callbacks.js:133`, in code that checked whether the return value was an
array, using `instanceof Array`. When I inspected what this code was
doing at runtime the value really was an array, but `instanceof Array`
was still returning false. Strangely I could reproduce the original
error when I ran my tests via Jest but not when I ran the same code in
the wd repl (where `instanceof Array` would return true at the same place).
It turns out that `instanceof Array` can return false for an array
created in another window or frame (or process?). See
http://web.mit.edu/jwalden/www/isArray.html for a full
explanation of this. `Array.isArray()` was added to ES5 for exactly this
reason, so I have replaced `instanceof Array` with `Array.isArray()`
throughout the codebase.
With this change I wd behaves as I would expect both in the repl and in
Jest.
Added touch_id method
Wrote the method, added API documentations to jsonwire-full-mapping.md, api.md and jsonwire-full.json. Wrote a test in msjon-specs.js.
1.0.0 / 2016-10-03
Documentation:
https://docs.saucelabs.com/reference/test-configuration/#building-links-to-jobs
(On private projects such URL might only be accessible to logged-in user.)
Update jsonWire doc about scroll command
0.4.0 / 2015-11-02
Wrap touch action array in object
Fix broken link to mobile emulator docs
0.3.12 / 2015-05-28
Update license attribute
specifying the type and URL is deprecated:
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
added user-agent string to requests
add info about selenium server to docs
Update the version of Q
Documentation fix.
Updating the version of Q allows long stack traces which makes it much easier to debug tests.
0.3.11 / 2014-11-13
Also retry on EPIPE ...
0.3.10 / 2014-10-25
0.3.9 / 2014-10-10
0.3.8 / 2014-09-18
Promise WebDriver: make "tap" chainable
Fix/add package.json keywords for discoverability
Added unlock methods
Might help others find this project quicker, for a long time I thought the only two options were selenium-webdriver and webdriverio.