Playwright
view release on metacpan or search on metacpan
bin/playwright_server view on Meta::CPAN
#!/usr/bin/env node
"use strict";
// If we don't have this, we're done for
const { exit } = require('process');
const fs = require('fs');
const path = require('path');
module.paths.push( '/usr/local/lib/node_modules' );
// Assume their kit is good
require('uuid');
require('playwright');
require('express');
// Get what we actually want from our deps
const { v4 : uuidv4 } = require('uuid');
const { chromium, firefox, webkit, devices } = require('playwright');
const express = require('express');
// Defines our interface
// let sharedir = require.resolve('playwright'); // api.json should be shipped with playwright itself
// var theFile = path.dirname(sharedir) + '/api.json';
// let rawdata = fs.readFileSync(theFile);
// This is automatically inserted via sed
let spec =
[{"name":"Accessibility","spec":[{"type":"text","text":"The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used byâµassistive technology such as [screen readers](https://en.wikipedia.org/...
function arr2hash (arr,primary_key) {
var inside_out = {};
for (var item of arr) {
inside_out[item.name] = item;
}
return inside_out;
}
var fix_it=false;
bin/playwright_server.bat view on Meta::CPAN
#!/usr/bin/env node
"use strict";
// If we don't have this, we're done for
const { exit } = require('process');
const fs = require('fs');
const path = require('path');
module.paths.push( '/usr/local/lib/node_modules' );
// Assume their kit is good
require('uuid');
require('playwright');
require('express');
// Get what we actually want from our deps
const { v4 : uuidv4 } = require('uuid');
const { chromium, firefox, webkit, devices } = require('playwright');
const express = require('express');
// Defines our interface
// let sharedir = require.resolve('playwright'); // api.json should be shipped with playwright itself
// var theFile = path.dirname(sharedir) + '/api.json';
// let rawdata = fs.readFileSync(theFile);
// This is automatically inserted via sed
let spec =
[{"name":"Accessibility","spec":[{"type":"text","text":"The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used byâµassistive technology such as [screen readers](https://en.wikipedia.org/...
function arr2hash (arr,primary_key) {
var inside_out = {};
for (var item of arr) {
inside_out[item.name] = item;
}
return inside_out;
}
var fix_it=false;
( run in 0.252 second using v1.01-cache-2.11-cpan-0d8aa00de5b )