Being relatively new to Android studio, I have been experimenting with various methods but now need some assistance. I am looking to input data into an ASP.NET Website-form using Android studio. The traditional JavaScript approach does not seem to be effective here.
myWebView.loadUrl("javascript: document.getElementByTagName('Benutzername').value = 'test'");
as well as
myWebView.loadUrl("javascript:document.getElementByName('<%= Benutzername.ClientId %>').value = '"+username+"';");
Is not producing the desired results :/
The HTML code for the input field is as follows:
<input name="Benutzername" type="text" style="text-align: center; width:120px;border:solid 1px #6699CC;" onkeypress="{if (event.keyCode == 13){document.form1.Passwort.focus()};}" value="">
In the source code, this snippet can be found:
<td width="109" height="30"><div align="right" class="Stil12"><font face="Arial, Helvetica, sans-serif"><font size="3"><font size="2">Passwort:</font></font></font></div></td>
<td width="126"><input name="Passwort" type="password" style="text-align: center; width:120px;border:solid 1px #6699CC;"
onKeyPress="{if (event.keyCode == 13){if (Feldpruefung()) submit();};}" value="">
</td>
I have been unable to make it work and attempting to simulate keypresses has also proved ineffective. Does anyone have any suggestions or ideas?