I am trying to open Netflix url with updated input credentials using a javascript. The input appears to be updated in the HTML form but when I trigger sign In button, the input fields gets empty. Any input is most appreciated
WebEngineView {
id: webEngineView
focus: true
url: "https://www.netflix.com/de-en/login"
onLoadProgressChanged: {
if(loadProgress === 100){
webEngineView.runJavaScript("var input1 = document.getElementsByName('email');
input1[0].value =\"xxxxx@email.com\";",
function(result) { console.error("Email updated"); });
webEngineView.runJavaScript("var input2 = document.getElementsByName('password');
input2[0].value =\"*******\";",
function(result) { console.error("Password updated"); });
}
}
}