selenium-webdriver 4.0.0-alpha.4 → 4.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.eslintrc.js +27 -0
  2. package/.prettierrc +4 -0
  3. package/CHANGES.md +22 -1
  4. package/README.md +4 -4
  5. package/chrome.js +72 -590
  6. package/chromium.js +1024 -0
  7. package/devtools/CDPConnection.js +37 -0
  8. package/devtools/generator/protocol-dts-generator.js +429 -0
  9. package/edge.js +124 -86
  10. package/firefox.js +201 -202
  11. package/http/index.js +131 -115
  12. package/http/util.js +56 -64
  13. package/ie.js +180 -104
  14. package/index.js +246 -199
  15. package/io/exec.js +34 -39
  16. package/io/index.js +141 -151
  17. package/io/zip.js +75 -65
  18. package/lib/README +5 -0
  19. package/lib/actions.js +138 -121
  20. package/lib/atoms/find-elements.js +123 -0
  21. package/lib/atoms/get-attribute.js +79 -60
  22. package/lib/atoms/is-displayed.js +72 -73
  23. package/{example/chrome_mobile_emulation.js → lib/atoms/make-atoms-module.js} +16 -23
  24. package/lib/by.js +192 -65
  25. package/lib/capabilities.js +82 -78
  26. package/lib/command.js +18 -20
  27. package/lib/error.js +134 -168
  28. package/lib/http.js +324 -230
  29. package/lib/input.js +325 -302
  30. package/lib/logging.js +127 -138
  31. package/lib/promise.js +60 -66
  32. package/lib/proxy.js +31 -41
  33. package/lib/session.js +12 -15
  34. package/lib/symbols.js +3 -4
  35. package/lib/until.js +162 -162
  36. package/lib/webdriver.js +733 -522
  37. package/net/index.js +30 -36
  38. package/net/portprober.js +31 -144
  39. package/opera.js +406 -0
  40. package/package.json +18 -11
  41. package/proxy.js +2 -2
  42. package/remote/index.js +190 -187
  43. package/safari.js +40 -49
  44. package/LICENSE +0 -202
  45. package/NOTICE +0 -2
  46. package/example/chrome_android.js +0 -42
  47. package/example/firefox_channels.js +0 -77
  48. package/example/google_search.js +0 -50
  49. package/example/google_search_test.js +0 -72
  50. package/example/headless.js +0 -55
  51. package/example/logging.js +0 -68
  52. package/testing/index.js +0 -498
package/.eslintrc.js ADDED
@@ -0,0 +1,27 @@
1
+ module.exports = {
2
+ env: {
3
+ mocha: true,
4
+ node: true,
5
+ es6: true,
6
+ },
7
+ extends: ['eslint:recommended', 'plugin:node/recommended', 'prettier'],
8
+ plugins: ['prettier', 'no-only-tests'],
9
+ rules: {
10
+ 'prettier/prettier': 'error',
11
+ 'no-const-assign': 'error',
12
+ 'no-this-before-super': 'error',
13
+ 'no-undef': 'error',
14
+ 'no-unreachable': 'error',
15
+ 'no-unused-vars': [
16
+ 'error',
17
+ { varsIgnorePattern: '^_', args: 'all', argsIgnorePattern: '^_' },
18
+ ],
19
+ 'constructor-super': 'error',
20
+ 'valid-typeof': 'error',
21
+ 'no-only-tests/no-only-tests': 'error',
22
+ 'node/no-unpublished-require': 'error',
23
+ 'node/no-unsupported-features/es-syntax': 0,
24
+ 'node/no-unsupported-features/node-builtins': 0,
25
+ 'node/no-missing-import': 'error',
26
+ },
27
+ }
package/.prettierrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true
4
+ }
package/CHANGES.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## v4.0.0-alpha.8
2
+
3
+ * Rolling back native support for Opera Browser
4
+ * Added new ieOptions capabilities:
5
+ - fileUploadDialogTimeout
6
+ - setEdgePath
7
+ - setEdgeChromium
8
+ - setScrollBehavior
9
+ - For consistent naming, deprecating `addArguments(...args)` in favor of `addBrowserCommandSwitches(...args)`
10
+
11
+ * Added relative locators
12
+ * Added Chrome DevTools Protocol (CDP) support
13
+ * Added support for BASIC authentication.
14
+ * Added listener for DOM mutations.
15
+ * Added support for listening out for console log events.
16
+ * Added support listening js exceptions using CDP
17
+
18
+ ### API Changes
19
+
20
+ * Added the 'opera' module
21
+
1
22
  ## v4.0.0-alpha.4
2
23
 
3
24
  ### Changes
@@ -725,7 +746,7 @@ continue to be supported, but will require setting the `--harmony` flag.
725
746
  due to a previously uncaught error within the frame.
726
747
  * FIXED: 8496: Extended the `chrome.Options` API to cover all configuration
727
748
  options (e.g. mobile emulation and performance logging) documented on the
728
- ChromeDriver [project site](https://sites.google.com/a/chromium.org/chromedriver/capabilities).
749
+ ChromeDriver [project site](https://chromedriver.chromium.org/capabilities).
729
750
 
730
751
  ## v2.45.0
731
752
 
package/README.md CHANGED
@@ -24,6 +24,7 @@ Safari 10 before testing.
24
24
  | Internet Explorer | [IEDriverServer.exe][release] |
25
25
  | Edge | [MicrosoftWebDriver.msi][edge] |
26
26
  | Firefox | [geckodriver(.exe)][geckodriver] |
27
+ | Opera | [operadriver(.exe)][operadriver] |
27
28
  | Safari | [safaridriver] |
28
29
 
29
30
  ## Usage
@@ -117,13 +118,12 @@ Additional resources include
117
118
 
118
119
  - the #selenium channel on freenode IRC
119
120
  - the [selenium-users@googlegroups.com][users] list
120
- - [SeleniumHQ](http://www.seleniumhq.org/docs/) documentation
121
+ - [SeleniumHQ](https://selenium.dev/documentation/) documentation
121
122
 
122
123
  ## Contributing
123
124
 
124
125
  Contributions are accepted either through [GitHub][gh] pull requests or patches
125
- via the [Selenium issue tracker][issues]. You must sign our
126
- [Contributor License Agreement][cla] before your changes will be accepted.
126
+ via the [Selenium issue tracker][issues].
127
127
 
128
128
  ## Node Support Policy
129
129
 
@@ -217,7 +217,6 @@ under the License.
217
217
  [LTS]: https://github.com/nodejs/LTS
218
218
  [PATH]: http://en.wikipedia.org/wiki/PATH_%28variable%29
219
219
  [api]: http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/
220
- [cla]: http://goo.gl/qC50R
221
220
  [chrome]: http://chromedriver.storage.googleapis.com/index.html
222
221
  [gh]: https://github.com/SeleniumHQ/selenium/
223
222
  [issues]: https://github.com/SeleniumHQ/selenium/issues
@@ -227,3 +226,4 @@ under the License.
227
226
  [release]: http://selenium-release.storage.googleapis.com/index.html
228
227
  [users]: https://groups.google.com/forum/#!forum/selenium-users
229
228
  [safaridriver]: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html#//apple_ref/doc/uid/TP40014305-CH11-DontLinkElementID_28
229
+ [operadriver]: https://github.com/operasoftware/operachromiumdriver/releases