Electron Webview on a certain page element/part
I've been researching all over google now on how to do it but can't seem the find a solution, So now I decided to seek help to a couple of forums.
What I want on my Electron Webview app is to show a specific part of a webpage and not all of it.
I want Electron Webview to
show only the red squared part and not all of the webpage.
PS.
The Image shown is for public viewing purpose only and not the exact project. (project is said private)
This will be somewhat difficult, since it's almost guaranteed that positioning of said element is based off of the positioning of the rest of the page. If the red part is part of an iframe you could easily just load up that URL.
I think the better question would be; Why do you need it to show only the outlined part? You could try working with a zooming in, or injecting CSS to make the outlined part take up the whole screen. Other than that I can't think of any way to easily accomplish what you need.