I am using self.webView.stringByEvaluatingJavaScript(from: "document.getElementById('username').value = \"\(username)\"")
to put in a username, and it works fine.
A different webpage has this field:
<input type="text" maxlength="255" name="user" class="stdWidth" value="">
and this field:
<input type="password" maxlength="255" password="1" name="pass" class="stdWidth">
How would i use stringByEvaluatingJavaScript
to put text into this field, as it has no ID?
I hace tried "document.getElementByTagName"
but it didnt work.
The webpage I am trying to input to is: Link