Skip to content

Instantly share code, notes, and snippets.

@DimitryRd
DimitryRd / .html
Last active May 28, 2020 21:48
Function invocation and this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8>" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<div id="div" style="cursor: pointer;">
<p>person.name</p>
</div>
@DimitryRd
DimitryRd / selenoid.yaml
Created September 5, 2018 15:50
Set-up for selenoid and containers for tests
stages:
- setup
- tests
- manual
docker:
stage: setup
script:
- /usr/bin/cm selenoid start --vnc
- /usr/bin/cm selenoid-ui start
@DimitryRd
DimitryRd / gist:a8aa04bfac87129376cddb27511d49a0
Last active September 4, 2018 19:18
Reporter for collection of response logs with logCorrelationId from network console of the browser
let networkLogsMessagesArray = [];
jasmine
.getEnv()
.afterEach(async () => {
/**
* Collects response logs with logCorrelationId from network console for all not-disabled tests
*/
const networkLogs = await browser.manage().logs().get('performance');