#Web in electron
41 messages · Page 1 of 1 (latest)
You can use BrowserView to display websites
However with puppeter I don't think so
what's it for?
It is for displaying a website, where you have to logging first (With the username and passwort)
Why you need electron for that?
Sure, sorry. In our project, we are building a desktop app for our school. In one of the sections, the school's website should be displayed. For this we use the password and username to log in.
The website should be displayed in the red area
very nice idea and design. OK. We have more info now
For this you can use BrowserView
Browserview is not integrated into the web elemtns though, you give it coordinates (x,y, width and height) and it automatically adjusts to that if you want.
There is also iframe (builtin to web) and webview (not recommended anymore by electron since its slow and unstable) but it can work in your school app.
Now it comes to an interesting part
Do you have an idea how I can manage this now, without useing pupperteer
What do you mean by manage?
type the username and the password and press Login
with js
Possible without pupperteer?
possible
you don't do that
you can but i wouldn't
I would see how it does the login request and do it yourself. then get the cookie or whatever it gives as credential and "insert" that into the webview
THEN you display the website
oh this maybe can work
😉
this is why you ask "how can I display a website and enter login credentials" instead of "how to use puppeter with electron"
the xy problem:https://xyproblem.info/
Asking about your attempted solution rather than your actual problem
Your right
it's part of the learning process 😁
LOL
Its back so everything is good 😄
Is there a way to communicate with the iframe (webview)?
I will do it with typing and press button
Because I will create a effect over it to make a special loading animation
with ipc
But I can't find a way to implement a script that is executing after the page is loaded and then interact with the page
Electron's webview tag is based on Chromium's webview, which is undergoing dramatic architectural changes. This impacts the stability of webviews, including rendering, navigation, and event routing. We currently recommend to not use the webview tag and to consider alternatives, like iframe, Electron's BrowserView, or an architecture that avoids ...