Get Code from Webview with form

Hi,

I want to load the Delivery Date Form www.r-m.de. There is a Form with the bike number. After submittiert the Form, there are the Date. But i can Not read this Data with Scriptable :frowning:
When I use the present() function, I can See the Date I want. It seems like:

{"result": "error", "status": "UNKNOWN", "msg": "Bitte \u00fcberpr\u00fcfen Sie den eingegebenen Radcode.", "headline": "Radcode ung\u00fcltig", "mail_update_active": null}

How I can geht this Data as a varable? Have you Any Idea?

Thanks :wink:


async function loadSite() {

let url = "http://www.r-m.de"
let wbv = new WebView()
await wbv.loadURL(url)

let jsc = `
var arr = new Array()

document.getElementsByClassName("production-status__input")[0].value = "1234"

document.getElementsByClassName("production-status__form")[0].submit()
  
var prodStat = document.getElementsByClassName("production-status__headline")[0].innerText
arr.push(prodStat)

JSON.stringify(arr)

`
let jsn = await wbv.evaluateJavaScript(jsc)
log(jsn)

await wbv.present()
}