Hey, I’m trying to log into Instagram using a web view and the evaluate javascript method but it’s just not working. With a little debugging, my javascript code detects no inputs on the page! Here is my code below
const webview = new WebView();
let url = “https://www.instagram.com/accounts/login/”
await webview.loadURL(url);
await webview.waitForLoad()
webview.present()
getData = `
function runit(){
const den = document.getElementsByTagName('input')[0] //to check input
return den + "";
}
runit();
`
let response = await webview.evaluateJavaScript(getData, false);
console.log(response)