Jamuna
I'm new here

BrowserApplication Inject Java Object not wokring

Hello ,

I have tried to inject java object into browser application and got the below ERROR.

Please tell me any other possibilities to use Java class to browser application

INFO  05.02.2021 11:35:34.908 (de.espirit.firstspirit.client.gui.applications.jxbrowser4.ChromeEngine): ConsoleEvent{lineNumber=1, message='Uncaught TypeError: window.$FS_CREATE_PROXY is not a function', source='https://domain'}

INFO  05.02.2021 11:42:44.927 (de.espirit.firstspirit.client.gui.applications.jxbrowser4.ChromeEngine): ConsoleEvent{lineNumber=1, message='Uncaught TypeError: Cannot read property 'getInput' of undefined', source='https://domain/polyfills-es2015.38e029897895239f5105.js'}

browserApplication.inject(new JavaProxy(), "proxy");

JS Code:

browserApplication.executeScript("window.proxy.getInput()")

Help me solve this issue.

Labels (2)
0 Kudos
1 Reply
brandelc
Occasional Observer

Re: BrowserApplication Inject Java Object not wokring

Hi,

have you been able to solve this issue?

I am also not succeeding in injecting the Java object into the browser and keep getting "Cannot read property '<my method name>' of undefined" errors when I try to call a method on it.

Any hints how this can be debugged?

 

Thanks,

Chris

0 Kudos