Commit c526eb2
authored
[js] Add Javascript/Typescript CDDL code generator for WebDriver BiDi (#17574)
* [js] Add Javascript/Typescript CDDL code generator for WebDriver BiDi
* Fix linting
* [js] Add Javascript/Typescript CDDL code generator for WebDriver BiDi
* Fix linting
* [js] Add Javascript/Typescript CDDL code generator for WebDriver BiDi
* Fix linting
* [js] Fix enhancements manifest issues found in code review
- back()/forward(): accept a context id instead of hard-coding an empty
string; delegate to traverseHistory({ context, delta: ±1 })
- continueWithAuth: replace username!/password! non-null assertions with
an explicit undefined guard that throws a descriptive error
- continueWithAuth: capture bidi.send() response and apply the same
response['type'] === 'error' check as generated methods, preventing
silent failures
* ...
* [js] Update comment for changes made to index.js
* [js] Emit BiDi events via EventEmitter in bidi/index.js
* Fix linting1 parent 7ca11b9 commit c526eb2
20 files changed
Lines changed: 3422 additions & 40 deletions
File tree
- javascript/selenium-webdriver
- bidi
- private
- test/bidi/generated
- py/private
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
16 | 44 | | |
17 | 45 | | |
18 | 46 | | |
| |||
53 | 81 | | |
54 | 82 | | |
55 | 83 | | |
| 84 | + | |
56 | 85 | | |
57 | 86 | | |
58 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
86 | 107 | | |
87 | 108 | | |
88 | 109 | | |
| |||
0 commit comments