sadym-chromium / bidiinchromecontext Goto Github PK
View Code? Open in Web Editor NEWWork moved to https://github.com/GoogleChromeLabs/chromium-bidi
Home Page: https://github.com/GoogleChromeLabs/chromium-bidi
License: Apache License 2.0
Work moved to https://github.com/GoogleChromeLabs/chromium-bidi
Home Page: https://github.com/GoogleChromeLabs/chromium-bidi
License: Apache License 2.0
It looks like it's being used as a Map, so let's make it one:
bidiInChromeContext/src/mapperServer.ts
Line 13 in 5c771c7
When running the tests and expecting them to pass, a headless browser is probably less distracting, so a --headless
flag would be nice.
This would make it easier to collaborate by reducing the need to discuss code style etc.
We could use Prettier. Here's Puppeteer's config: https://github.com/puppeteer/puppeteer/blob/main/prettier.config.js
LICENSE
file (done in #7)Currently, browser starts when BiDi Server is started. Instead, BiDi Server should run an instance of browser for each WS connection like in this prototype:
https://github.com/sadym-chromium/WebDriverBiDiServerExperiments/blob/b343ffe15966a720f567dad6af6d1ff5cc9ae9b9/bidiServer/server.js#L360-L365
There's currently a lot of output even when not using the DEBUG
environment variable. Can this be reduced to just something like "Listening on port 8000" and logging errors? (When running tests, logging only fatal errors, since bad input is deliberately used.)
The webdriver-bidi repo has a GitHub workflow that generates remote and local end definitions files here:
https://github.com/w3c/webdriver-bidi/blob/master/.github/workflows/test.yml. We should investigate using these files to generate typescript classes, and code for validating command parameters.
When running the tests I see this on the console of the server:
Error: @rollup/plugin-typescript: Could not find module 'tslib', which is required by this plugin. Is it installed?
The whole thing:
(node:62371) UnhandledPromiseRejectionWarning: Error: @rollup/plugin-typescript: Could not find module 'tslib', which is required by this plugin. Is it installed?
at error (file:///Users/foolip/src/bidiInChromeContext/node_modules/rollup/dist/es/shared/rollup.js:5226:30)
at throwPluginError (file:///Users/foolip/src/bidiInChromeContext/node_modules/rollup/dist/es/shared/rollup.js:18005:12)
at Object.error (file:///Users/foolip/src/bidiInChromeContext/node_modules/rollup/dist/es/shared/rollup.js:18631:20)
at preflight (/Users/foolip/src/bidiInChromeContext/node_modules/@rollup/plugin-typescript/dist/index.js:476:17)
at Object.buildStart (/Users/foolip/src/bidiInChromeContext/node_modules/@rollup/plugin-typescript/dist/index.js:716:13)
at file:///Users/foolip/src/bidiInChromeContext/node_modules/rollup/dist/es/shared/rollup.js:18835:25
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 0)
at async rollupInternal (file:///Users/foolip/src/bidiInChromeContext/node_modules/rollup/dist/es/shared/rollup.js:20254:9)
at async read (file:///Users/foolip/src/bidiInChromeContext/src/.build/mapperReader.js:20:20)
I don't see a direct dependency on tslib, but something seems to be missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.