I am filling a form automatically with a bookmarklet, with lines of code like
document.getElementById('id_but1').value = " a"
The code works in the browser console, but not as a bookmarklet.
From reading this SO answer I suspect the problem is caused by iframes.
SO suggests a piece of code like
let Iframe = document.getElementById('iframe_id').contentWindow.document
let value = Iframe.getElementById("textboxID").value = "Some Text"
The problem in my case is that I don't know the id for the iframe,
i.e., I don't know 'iframe_id'.
Any suggestion for knowing the ids of the iframes?
|Location:||Huddersfield, West Yorkshire, UK|
|Nodes:||16 (2 / 14)|