Skip to content

Instantly share code, notes, and snippets.

View devalex88's full-sized avatar

Alex devalex88

View GitHub Profile
import os
import sys
from collections import Counter
import pandas as pd
from bs4 import BeautifulSoup
from lxml import etree
import statistics
import numpy as np
import popc
@devalex88
devalex88 / test.yml
Created October 16, 2020 05:05
Playwright .github/workflows/test.yml
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
@devalex88
devalex88 / junit.xml
Created October 15, 2020 08:28
Playwright junit.xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="7.005">
<testsuite name="TodoMVC" errors="0" failures="0" skipped="0" timestamp="2020-10-15T07:56:27" time="6.298" tests="1">
<testcase classname="TodoMVC should let users manage to-do list" name="TodoMVC should let users manage to-do list" time="5.091">
</testcase>
</testsuite>
</testsuites>
@devalex88
devalex88 / package.json
Created October 15, 2020 07:53
Playwright package.json
{
"name": "playwright-demo",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "jest"
},
"author": "",
"license": "MIT",
"devDependencies": {
@devalex88
devalex88 / todomvc.test.js
Created October 15, 2020 07:50
Playwright todomvc.test.js
const { chromium } = require("playwright");
describe("TodoMVC", () => {
it("should let users manage to-do list", async () => {
// Open new page
const page = await context.newPage();
// Go to http://todomvc.com/examples/react/#/
await page.goto("http://todomvc.com/examples/react/#/");
@devalex88
devalex88 / codegen.js
Created October 15, 2020 07:43
Playwright codegen.js
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({
headless: false
});
const context = await browser.newContext();
// Open new page
const page = await context.newPage();
@devalex88
devalex88 / jest.config.js
Last active October 15, 2020 07:42
Playwright jest.config.js
module.exports = {
preset: "jest-playwright-preset",
reporters: [ "default", "jest-junit" ]
}
@devalex88
devalex88 / data.csv
Last active June 25, 2018 09:22
CSV File Support - LoadVars handling specific line in source file https://forum.katalon.com/discussion/7387
first last
Alex Smith
Steve Rogers
Bruce Wayne
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>assertAttribute</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Untitled Test Suite</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>