Skip to content

Instantly share code, notes, and snippets.

Avatar
🚢
Shipping

Diego Ferreiro Val diervo

🚢
Shipping
View GitHub Profile
@diervo
diervo / coveo_headless.js
Created Feb 8, 2021
coveo headless npm entry
View coveo_headless.js
function e(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(e){return!!e&&!!e[L]}function r(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[$]||!!e.constructor[$]||c(e)||u(e))}function n(e,t,r){void 0===r&&(r=!1),0===i(e)?(r?Object.keys:N)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function i(e){var t=e[L];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:u(e)?3:0}function a(e,t){return 2===i(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function o(e,t,r){var n=i(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function s(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e){return M&&e instanceof Map}function u(e){return V&&e instanceof Set}function l(e){retu
@diervo
diervo / Test
Created Jan 23, 2021
micromark parsing
View Test
## Supported Basic Actions
[Basic elements](#basic-element) support these public methods.
- `click` and `waitForClickable` are applicable only to elements with `"type": "clickable"` and `"type": "editable"`.
- `setText`, `clear`, and `clearAndType` are only applicable to elements with `"type": "editable"`.
- The remaining actions are applicable to any basic element type.
View gist
# WebDriver + Shadow DOM traversal code samples
## Page Object Shadow DOM traversal methods
Accepts a list of CSS selectors and iterates over them, querying off of the shadowRoot after each new element is found:
```
public WebElement findElementInShadowRoot(WebElement element, By... selectors) {
WebElement curr = expandShadowIfPresent(element);
for (int i = 0; i < selectors.length; i++) {
View heroku.log
warning: not sending a push certificate since the receiving end does not support --signed push
Counting objects: 6179, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5519/5519), done.
Writing objects: 100% (6179/6179), 3.97 MiB | 77.00 KiB/s, done.
Total 6179 (delta 2426), reused 861 (delta 491)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Google Chrome app detected
@diervo
diervo / error.log
Created Dec 16, 2016
possible bug webpack - path.parse
View error.log
When executing this:
__WEBPACK_IMPORTED_MODULE_0_path__["parse"])('/foo/bar/buzz.js');
^^
Script snippet #6:496 Uncaught TypeError: __webpack_require__.i(...) is not a function
__webpack_require__ being the path module, that contains all other methods (basename, extname, ...)