This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const hasDuplicateOneline = (array) => | |
| new Set(array).size != array.length; | |
| const hasDuplicateAlternative = (arr) => | |
| arr.some((value, index, origin) => origin.indexOf(value) !== index); | |
| let z = []; | |
| for (let i = 0; i < 10_000; i++) { | |
| z.push(i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST http://localhost:4444/wd/hub/session/b01c879e-160a-49f9-968c-9e451a0f8eb3/actions | |
| Content-Type: application/json;charset=utf-8 | |
| { | |
| "actions": [ | |
| { | |
| "type": "key", | |
| "id": "keyboard_1", | |
| "actions": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "capabilities": { | |
| "alwaysMatch": { | |
| "browserVersion": "59.0", | |
| "enableVNC": true, | |
| "acceptInsecureCerts": true, | |
| "moz:firefoxOptions": { | |
| "log": { | |
| "level": "debug" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ | |
| function attribute(e, t, n) { | |
| e.setAttribute(t, n) | |
| } | |
| function highlight(r) { | |
| for (var i = 0; i < r.length; i++) { | |
| e = r[i]; | |
| try { | |
| e.os = e.getAttribute('style'); | |
| attribute(e, 'style', e.os + ';border:2px dashed red;') |