I have some playwright code that I use to automate chrome. Is there a way to use page.locator within an electron app so I can use the same playwright code to drive the electron webview?
https://github.com/microsoft/playwright/blob/e55a2bdf16c1ded0465e6a0aaf98e383ce2bd0c0/docs/src/other-locators.md
How would I integrate this lib so that I can use these matchers rather than rolling my own using cheerio or something similar?
Related
A client has a desktop application built with electron and wants me to deploy it on the web.
The app allows users to upload files and generates visualizations. What could be the easiest way for me to do this? I am not much familiar with JavaScript frameworks. So please help me out
I would like to activate basic browser features in electron like tabs, url input, contextmenu, download manager and forms autofill. Since electron based on chromium maybe there's easy way to just activate them all? Or everything has to be reimplamented?
The official policy of the Electron project is that browser features are left to the developer. See #15753 for one such statement. In many cases browser features are implemented in Chrome/Chromium code that isn't shared with Electron.
I am trying to build a Progressive Web Application (PWA) using angular framework and I am trying include functionality for speech to text. I scouted over the internet and I am not able to find anything that would help me to implement speech to text functionality in Safari, for Iphone.
Try integrate annyang (speech recognition library) within your Angular project
Save the library js file within the application. You can save it to an asset folder.Also, you have to add the js file path within angular.json file.Now, you can directly access library options/callbacks within a component class.
if I build an angular app and feed run it using electron, will it work exactly like a web-application ?
Short answer: yes it does work exactly like web-application.
Electron is chromium browser, and nodejs bundled together. Every app that is made for chrome would seamlessly work in electron, and would work exactly like a web app.
I'm trying to program in Dart but without the Dart-Editor. It works fine so far but its really annoying and slow to always call pub build after making a change to either html/css or dart code.
As far as I remember when launching the app with Dart-Editor you just have to refresh the page.
Is it possible to get this working without the editor?
Thanks!
You can use pub serve which is similar to the webserver integrated in the Darteditor.
If you are using Dartium as browser you can add --no-dart2js so pub serve doesn`t generate JavaScript (which is slow) but directly serves Dart which Dartium can process directly.
For other browsers it's of course convenient to use the integrated dart2js conversion.