I am trying to Debug.Print a value in the immediate window of an input text field
so when found that this line can be executed in the console
document.querySelector("#txtCaptcha").value
I thought it may be useful for me if I could get that value into the immediate window I have tried such line but returned nothing in the immediate window (no error occurred but nothing in the immediate window)
Debug.Print .ExecuteScript("document.querySelector('#txtCaptcha').value;")
Simply I am searching for a way to be able to get the value from javascript command. I have no idea about javascript so I am stuck
txtCaptcha?txtCaptcha