Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CefFrame evaluateJavascript #450

Open
DatL4g opened this issue Sep 21, 2023 · 1 comment
Open

CefFrame evaluateJavascript #450

DatL4g opened this issue Sep 21, 2023 · 1 comment
Labels
enhancement Enhancement request

Comments

@DatL4g
Copy link

DatL4g commented Sep 21, 2023

Is your feature request related to a problem? Please describe.
There is currently no way to execute some javascript and get the value back.

For example we wanna execute this script

(function() {
	const wantedA = document.getElementById("link");
	return wantedA.getAttribute("href");
})();

And get the String of the elements href back in Java.

Describe the solution you'd like
This is already implemented in CefSharp like this:

https://github.com/cefsharp/CefSharp/blob/2e2b53f8a1a3ee4839c7d1d18be8fa8b0269139f/CefSharp/IFrame.cs#L129

@magreenblatt
Copy link
Collaborator

See chromiumembedded/cef#3631 (and result callback to ExecuteJavaScript)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement request
Projects
None yet
Development

No branches or pull requests

2 participants