Skip to content

Instantly share code, notes, and snippets.

@batalov
batalov / gist:06bd549210cac746efcf670983eaf6d4
Created August 8, 2019 08:27
eyetropy output example 2
{
"blackParts": [
{
"blackStart": 10.4271,
"blackEnd": 14.4311,
"blackDuration": 4.004
},
{
"blackStart": 88.1297,
"blackEnd": 92.1337,
@batalov
batalov / gist:3d465a9480a004acfb461648164f3e80
Last active August 8, 2019 09:27
webdriver io capturing video bounded to certain element
const { promisify } = require("util");
const { exec } = require("child_process");
const execute = promisify(exec);
describe("Login page basic auth", () => {
it("auth with creds", async () => {
browser.url(
"https://www.onetwotrip.com/ru/hotels/hotel/vega-izmailovo-hotel-and-convention-center-325246?to=%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&id=524901&sc=524901&type=geo&countryName=russia&cityName=moscow&source=5e0&s=true&date_start=2019-05-24&date_end=2019-05-25&adults=1&children=0",
);
@batalov
batalov / gist:cb788744a236e62b34d3798bf3a82570
Last active August 6, 2019 09:52
eyetropy output example
{
"metaData":{
"streams":[
{
"index":0,
"codec_name":"h264",
"codec_long_name":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile":"High",
"codec_type":"video",
"codec_time_base":"1/50",
{
"error": null,
"result": {
"request_id": "3b2ccdf0-6283-11e8-9ba2-1d5f13fedba9",
"status": "done",
"currency": "RUB",
"hotel": {
"id": 921760,
"stars": 3,
"type": 14,