![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
macaca-electron
Advanced tools
macaca electron driver
xudafeng | paradite | meowtec | ziczhu | xianxiaow | cyjake |
---|---|---|---|---|---|
coffeedeveloper | jacksonlai |
This project follows the git-contributor spec, auto updated at Mon Mar 08 2021 15:57:43 GMT+0800
.
$ npm i macaca-electron -g
Simply put, Chromium doesn't stop shipping so Electron is not going to slow down either, so Macaca is not stop...
Starting with Electron version 7, Macaca will always upgrade with the Electron's main version.
set MACACA_ELECTRON_DEVTOOLS=1
to open the devtools.
Macaca disables window.alert
, window.prompt
, window.confirm
from popping up by default, and you can override by execute
.
const fs = require('fs');
const path = require('path');
const Electron = require('macaca-electron');
const electron = new Electron();
/**
default options
{
show: true,
alwaysOnTop: false,
x: 0,
y: 0,
width: 800,
height: 600,
userAgent: 'userAgent string',
webPreferences: {
nodeIntegration: false
}
}
*/
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
(async () => {
await electron.startDevice({
show: false // in silence
});
await electron.maximize();
await electron.setWindowSize(null, 500, 500);
await electron.get('https://www.baidu.com');
await sleep(3000);
const imgData = await electron.getScreenshot();
const img = Buffer.from(imgData, 'base64');
const p = path.join('screenshot.png');
fs.writeFileSync(p, img.toString('binary'), 'binary');
console.log(`screenshot: ${p}`);
await electron.stopDevice();
})();
The MIT License (MIT)
FAQs
Macaca Electron driver
The npm package macaca-electron receives a total of 605 weekly downloads. As such, macaca-electron popularity was classified as not popular.
We found that macaca-electron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.