Skip to content

Instantly share code, notes, and snippets.

/**
* @experimental
* This function tries to highligh exact point at webpage where click was failed,
* by placing special red square into failed coordinate.
* So allure screenshots will show exact failing location
* @param error exception object
*/
async function drawClickPointAttempt(error: Error) {
try {
const text = error.message;
import { Browser } from 'puppeteer';
import * as puppeteer from 'puppeteer';
import axios from 'axios';
export const getBrowser = async (): Promise<Browser> => {
switch (process.env.runningType) {
case 'selenoid': {
return await selenoidLaunch();
}
case 'local': {
@bolatbekb
bolatbekb / mac-setup.md
Created October 20, 2018 07:38 — forked from orlando/mac-setup.md
Fresh Mac OS Setup

1. Run Software Update

Make sure everything is up to date in the App Store

2. Install Homebrew and Homebrew-Cask

  1. Open a terminal window and execute the Homebrew install script:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@bolatbekb
bolatbekb / metrics.txt
Created November 23, 2017 19:24 — forked from jasononeil/metrics.txt
List of all Sitespeed 4.0 metrics. I couldn't find this list anywhere, and it took me a while to figure out how to generate the file using grunt-sitespeedio (for future reference: set `sitespeedio.default.options.metrics.list=true`). I figure pasting this here will help some other poor souls thanks to the SEO goodness.
browsertime.pageSummary.browserScripts.0.pageinfo.documentHeight
browsertime.pageSummary.browserScripts.0.pageinfo.documentWidth
browsertime.pageSummary.browserScripts.0.pageinfo.responsive
browsertime.pageSummary.browserScripts.0.timings.firstPaint
browsertime.pageSummary.browserScripts.0.timings.fullyLoaded
browsertime.pageSummary.browserScripts.0.timings.navigationTiming.connectEnd
browsertime.pageSummary.browserScripts.0.timings.navigationTiming.connectStart
browsertime.pageSummary.browserScripts.0.timings.navigationTiming.domComplete
browsertime.pageSummary.browserScripts.0.timings.navigationTiming.domContentLoadedEventEnd
browsertime.pageSummary.browserScripts.0.timings.navigationTiming.domContentLoadedEventStart
@bolatbekb
bolatbekb / index.md
Created August 8, 2017 17:55 — forked from mistakster/index.md
Functional tests of the Yandex’s homepage
@bolatbekb
bolatbekb / elementary-os-to-development-environment.md
Created August 23, 2016 08:16
Elementary OS: installs and tools to set up a basic (web) development environment

Elementary OS to basic (web) development environment

Process of setting up a basic (web) development environment in elementary OS.

Overview:

  • VLC
  • Transmission (bittorrent client)
  • tlp (power management, improve battery life)
  • Skype