S sinaparsian Member Oct 30, 2020 #1 While loading https://www.google.com/recaptcha/api2/demo webpage in JavaFX webview this solved in jdk 8 with this code : Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent)) But it is not solved in jdk version 11
While loading https://www.google.com/recaptcha/api2/demo webpage in JavaFX webview this solved in jdk 8 with this code : Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent)) But it is not solved in jdk version 11
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2020 #2 sinaparsian said: Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent)) Click to expand... Why do we need to guess what is 'we'??? I get this with Java 14: B4X: WebView1.LoadUrl("https://www.google.com/recaptcha/api2/demo") Dim we As JavaObject = WebView1 we = we.RunMethod("getEngine", Null) Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent)) Upvote 0
sinaparsian said: Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent)) Click to expand... Why do we need to guess what is 'we'??? I get this with Java 14: B4X: WebView1.LoadUrl("https://www.google.com/recaptcha/api2/demo") Dim we As JavaObject = WebView1 we = we.RunMethod("getEngine", Null) Dim useragent As String=$""use required / intended UA string""$ we.RunMethod("setUserAgent",Array(useragent))