electron

which chromedriver version supports electron app?

我的未来我决定 提交于 2021-01-28 20:50:19
问题 I try to run electron app using the following code: @Test public void testElectron() { System.setProperty("webdriver.chrome.driver", chromeDriverPath); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary(this.electronPath); WebDriver driver = new ChromeDriver(chromeOptions); } But I get the following error: Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 37592 Only local connections are allowed. Please

which chromedriver version supports electron app?

喜夏-厌秋 提交于 2021-01-28 19:56:44
问题 I try to run electron app using the following code: @Test public void testElectron() { System.setProperty("webdriver.chrome.driver", chromeDriverPath); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary(this.electronPath); WebDriver driver = new ChromeDriver(chromeOptions); } But I get the following error: Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 37592 Only local connections are allowed. Please

Electron “Uncaught ReferenceError: require is not defined”

夙愿已清 提交于 2021-01-28 19:51:25
问题 I'm trying to execute a file with this script: <script> function verify() { var child = require('child_process').execFile; var executablePath = "C:\\file"; child(executablePath, function(err, data) { if(err){ console.error(err); return; } console.log(data.toString()); }); } </script> But when I run this script I get error "Uncaught ReferenceError: require is not defined". I've tried to fix this for 3 days with no sucess. I've enabled node intergration, installed browserify and read 10

Electron notarization failed due to “The binary uses an SDK older than the 10.9 SDK.”

◇◆丶佛笑我妖孽 提交于 2021-01-28 13:17:06
问题 I'm trying to get notarization working for my electron app. Apple failed to notarize my App due to "The binary uses an SDK older than the 10.9 SDK". I assume it refers to MacOS SDK. I could not find reference in Electron documentation about how to configure MacOS SDK version being used in the building process. I'm using Xcode 10.1, Electron 4.0.0, Electron-builder 20.44.4. My question comes down to what actually controls the SDK version used by electron? Is it Xcod, Electron version or some

Electron notarization failed due to “The binary uses an SDK older than the 10.9 SDK.”

好久不见. 提交于 2021-01-28 13:11:11
问题 I'm trying to get notarization working for my electron app. Apple failed to notarize my App due to "The binary uses an SDK older than the 10.9 SDK". I assume it refers to MacOS SDK. I could not find reference in Electron documentation about how to configure MacOS SDK version being used in the building process. I'm using Xcode 10.1, Electron 4.0.0, Electron-builder 20.44.4. My question comes down to what actually controls the SDK version used by electron? Is it Xcod, Electron version or some

Electron build app doesnt start express server

半城伤御伤魂 提交于 2021-01-28 12:02:06
问题 I'm building an app and all works fine while I'm in developer mode. Everythink works as it should. But when I package my app with electron-builder, app opens but it doesnt start express server and app doesnt work properly. Here is my package.json code { "name": "artros", "version": "1.0.0", "description": "Artros", "author": "MC3", "license": "ISC", "main": "start.js", "scripts": { "pack": "build --dir", "dist": "build" }, "build": { "appId": "com.artros.app", "productName": "Artros", "win":

Uncaught ReferenceError: global is not defined at Object../node_modules/fbjs/lib/setImmediate.js

狂风中的少年 提交于 2021-01-28 11:00:42
问题 I got this error when I try to render Button from ant design in my Electron project, and it renders nothing instead. When I change from button to just Hello World text, it works. I'm not sure whether the error comes from webpack or the ant design itself. Note: I manually create this project by myself, but the error can be reproduced on https://github.com/Devtography/electron-react-typescript-webpack-boilerplate but no error on https://github.com/Robinfr/electron-react-typescript Error message

Electron win.flashFrame() method when app is minimized

放肆的年华 提交于 2021-01-28 07:57:46
问题 win.flashFrame() makes tray icon flash until the icon is clicked and the app window is back in the focus again (on Windows 10) However, if the app is minimized, the flashing ends automatically after just a couple of seconds without even clicking on the icon. How can I prevent this? 回答1: If the window is minimized the user won't see the window flash, you will need to use the win.setProgressBar funciton. This will make a loading bar behind the icon in the tray, you can also set the mode of the

Env vars to change app name in project.json and set runtime vars?

帅比萌擦擦* 提交于 2021-01-28 07:50:30
问题 I need to generate two apps from the same codebase (e.g. "pro" and "lite" versions). There are a lot of questions here about this but none I found involve node or electron . I have only used env in development in very simple ways and after searching around, I haven't seen any mention of being able to use them in a deployed application. So two tasks: 1. Changing the name of the app So, using the package.json file with electron builder , I've tried to change the productName like this:

Electron: Send message from BrowserWindow to Electron app

北战南征 提交于 2021-01-28 06:08:38
问题 I have an Electron app which uses a BrowserWindow to display a web app. I want to be able to send a message from the angularjs web app to the Electron app. I had something like this in mind: //web app window.notify('message','hello'); //Electron app window.on('message',function(e){ console.log(e.text); }; Is this even possible? 回答1: You can use ipcMain and ipcRenderer for sending messages between the main script and the client script. 来源: https://stackoverflow.com/questions/45091014/electron