Skip to content

Instantly share code, notes, and snippets.

const webdriverio = require('webdriverio');
const path = require('path');
(async () => {
let browser;
const run = async () => {
browser = await webdriverio.remote({
hostname: 'browsers.aerokube.com',
protocol: 'https',
port: 4444,
const webdriverio = require('webdriverio');
const path = require('path');
(async () => {
let browser;
const run = async () => {
browser = await webdriverio.remote({
hostname: 'browsers.aerokube.com',
protocol: 'https',
port: 4444,
@eladrkatz
eladrkatz / nodejs-tcp-example.js
Created October 10, 2019 09:55 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id='hoverElement'>