Questions tagged [webengine]

64 questions
1
vote
1 answer

Access return value from a Javascript in JavaFX

I have the following Javascript executed in a webengine. Source: Execute a Javascript function for a WebView from a JavaFX program This Javascript highlights a specific word on a website. WebView webView = new WebView(); final WebEngine engine =…
atljp
  • 21
  • 1
  • 4
1
vote
1 answer

Executing a Javascript in JavaFX using WebEngine.executeScript()

I want to fill two textfields automatically and simulate a buttonclick to automatically log in to a website. I'm using the JavaFX WebView and its function .executeScript() This is what I've got so far: (Refering to Sergey Grinevs answer on this…
atljp
  • 21
  • 1
  • 4
1
vote
0 answers

Javascript code executed on JavaFX WebEngine in second Thread

I have a question. Is possible to execute javascript code on WebEngine in second Thread without using Platform.runlater()? Excuting javascript code in main Thread freezes my app, so i want to run it in second Thread, but it looks that it works like…
MikolajMGT
  • 113
  • 2
  • 10
1
vote
0 answers

Read files in javascript from JavaFX WebEngine

I'm using JavaFX (from jdk 1.7) to display a angular web page: final private WebView browser = new WebView(); final private WebEngine webEngine = browser.getEngine(); webEngine.load("http://localhost:8080/myApp"); In this angular application, I…
Thomas Stubbe
  • 1,945
  • 5
  • 26
  • 40
1
vote
1 answer

Execute javascript and return response (JavaFX/Swing)

I need to run a javascript function from java and save the response in a variable. I wrote the following code but it does not work: public Object execute(String value) { SwingUtilities.invokeLater(() -> { new JFXPanel(); …
Joseph
  • 335
  • 1
  • 3
  • 13
0
votes
1 answer

error in webengine of javafx when using apostrophe in combination with some javascript

i wrote a little wrapperapplication for an oldschool html4 webchat (so i can send custom messages when someone joins etc.). but i am facing some trouble when i'd like to update the main view. my unit test (to not annoy the guys in the chat) is…
J. Doe
  • 430
  • 2
  • 4
  • 11
0
votes
0 answers

Grid background using 2 linear-gradients doesn't seem to have consistent "thickness" in lines (CSS)

I made a grid background for one element using 2 linear gradients. The lines however don't have consistent thickness and appear blurry in some segments, very clear in others, etc. - see this screenshot:FF screenshot. The actual CSS for the…
T. F.
  • 1
  • 1
0
votes
0 answers

Qt WebEngine on Windows with Visual Studio 2017 incognito mode

I managed to create VS app to load a web page with qt WebEngine. Now I would like to use incognito mode but I cant figure out how to translate the qt documentation to…
Stephan
  • 1
  • 2
0
votes
1 answer

QT loading a webgl in a webengine using qt minimal example

Good morning, my goal is use WebEngine Qt Quick Minimal Example in order to visualize a WebGL in a qml window. From the original example I have just modified the url that is now pointing to my webGL file index.html. When I run the application the…
0
votes
1 answer

Some way to click a rescued Element of Javafx?

I am trying to click a button with no id, only class. Because of that, I have had to recue the element by xpath, having an Element object, which no click method. Does anyone know some strategy to achive clicking this Element? Here the code where I…
Osmar Alí
  • 21
  • 5
0
votes
0 answers

javafx Webview not working with google login

It seems Google has revoked the option of logging with "simple browsers" like javafx webview: The…
0
votes
1 answer

QtWebengine Cookie SameSite=None warning

I keep receiving the following warning on QtWebEngine calls in QML. How do I resolve this? js: A cookie associated with a resource at was set with `SameSite=None` but without `Secure`. This thread here SameSite warning Chrome 77 says that a…
Chilarai
  • 1,842
  • 2
  • 15
  • 33
0
votes
0 answers

JavaFX webengine: Use http proxy for https websites

I'm trying to connect to a website with javafx webengine/webview. I use a proxy that does not support the https protocol (so only http). When I try to connect to a http website, it works. However, when I try to load a https website, it ignores the…
Louis Bernard
  • 229
  • 4
  • 20
0
votes
1 answer

I Tried to Install PyQtWebEngine, Always Stuck on the Same Problem. Couldn't Fine the solution anywhere

I'm new to this. Sorry for the mess. I've been trying to install PyQtWebEngin, first On zorin os which is dualboot along with Windows10, it failed. Then I decided to install it on Linux Mint on VM inside Windows10. The error result is alway the…
poopoo
  • 43
  • 5
0
votes
1 answer

Qt WebEngineView: Problem with loading a WebGL project (exported from Unity)

I'm trying to download a WebGL project (exported from Unity 2018.3.14f1) in Qt WebEngineView (Qt 5.12.0) For an example, WebGL project was created in Unity 2018 - an empty scene without objects (camera only) - Screenshot: Unity project and exported…