I have a desktop application developed with Electron.
I tested it with Selenium and it works perfectly.
Now I am discovering Playwright library.
My question is: can I use the Playwright Python library to test my Electron application?
PS: I haven't found any documentation about it
This is not yet possible but there is a feature request for it here: https://github.com/microsoft/playwright-python/issues/379
Related
When I read the document of electron.
Electron Forge
Electron Forge is a batteries-included toolkit for building and publishing Electron apps. Get your Electron app started the right way with first-class support for JavaScript bundling and an extensible module ecosystem.
I have several questions about this sentence:
1.building Electron apps.
so it can build electron code to .msi and .exe installer, right?
2.JavaScript bundling
what's the difference between this and webpack or vite for packing javascript code?
3. what's the meaning of extensible module ecosystem?
I am testing the Gluon Mobile framework, and have made a small application based on the Afterburner with FXML template from the IntelliJ Idea Gluon plugin.
The application builds and runs successfully on the JVM and I am also able to build a native image (./gradlew nativeBuild on Linux with GRAALVM_HOME pointing to 20.3.0.r11-grl).
When I try to run the native image (with ./gradlew nativeRun) it fails with javafx.fxml.LoadException: biz/nellemann/pwgen/views/main.fxml. Maybe related to java.lang.ClassNotFoundException: javafx.scene.control.Slider?
I have looked through the Gluon docs and searched for similar errors, but have not been able to solve my problem. I hope someone can take a look and enlighten me.
The full trace can be seen at https://pastebin.pl/view/f75a0138, and the source for my test project is available at https://bitbucket.org/mnellemann/pwgen-gluon/.
Thanks in advance,
Mark
I have a relatively simple node application:
- built on Electron
- using an SQLite database
- successfully packaged as a OSX application
Are there any tools out there for converting/re-packaging my Electron OSX app to iOS?
Am I correct in understanding that Phonegap is not a like-for-like replacement for Electron?
Cheers everyone/anyone!
Sam
It really depends on how deep your Electron app is bound to Electron specific API. Those specific API comprises Node and Electron functions. Those specific Electron functions (for example application menu) will be something you have to manually migrate. So the steps would be:
Create new Cordova app in iOS. Cordova web site has detailed instructions.
Copy your html/js/css content from Electron app and hook on Cordova bootstrapper
Replace Electron specific API to something pure web
Replace Node functions with possibly NPM analogous modules
Note:some Node API won't be available from Cordova app, for example file system API.
dI am trying to get back into Dart programming after a year of break. When I last used Dart I use the DartEditor, which has since been deprecated. Now, I am trying to use WebStorm, and Dartium to run the standard dart project templates.
When I build the Uber Simple Web Application, I can get Webstorm to start the Dartium browser and display the page, but I cannot get it to stop at a breakpoint. When I build the Polymer Web Application, WebStorm starts the Dartium browser, but never displays the page - the request is made but nothing happens!
I can open the projects with a standard browser without an issue.
I have installed the JetBrains IDE Support plugin.
Dartium version: 45.0.2454.104
Webstorm version: 2016.1.1 bld 145.597
Dart version: 1.16.0
There is currently an issue in WebStorm that breaks showing applications in Dartium related to caching. The pub serve window in WebStorm should show on which port your application is served. if you open the URL in Dartium using this port
http://localhost:thePort/index.html
then it should work.
An update containing a fix for this issue was announced for this week.
WebStorm 2016.1.2 and IntelliJ IDEA 2016.1.2 official releases are published now, all known problems regarding SDK 1.16 are fixed there.
How I can use the Kivy framework in Qpython3 (Python 3.2 for android) app?
I know that Qpython (Python 2.7 for android) app support this framework.
pip_console don't install kivy. I have an error, when I try to install it. Please help me.
Edit: Kivy now supports python3 on Android, though qpython would still have to include this (or a similar build process) to have kivy work in qpython3.
You can't right now, as kivy does not have a python3-supporting backend on android.
We're working towards adding one, at which point I quess qpython may look at adding support in qpython3.
From kivy documentation http://kivy.org/docs/installation/installation.html
NOTE: Currently, packaging only works with Python 2.7. We are working on Python 3.3+ support, but for now if you plan to distribute your package on any platform you should use Python 2.7.