I have a form that has the following features -- with "text" being the box for username in this case.
form = html_form(read_html(url))[[1]]
print(form)
<form> 'login' (GET )
<input text> '':
<input password> '':
<input submit> '': log in
>
I dug more into what the form looked like:
> form$fields[1]
$`NULL`
$`name`
NULL
$type
[1] "text"
$value
NULL
$checked
NULL
$disabled
NULL
$readonly
NULL
$required
[1] FALSE
attr(,"class")
[1] "input"
I'm not sure how to alter the text and password perameters without a specific name to reference. This didn't work, for reference:
filled_form = set_values(form,
'' = "email@email.com",
'' = "p@ssword")
Nor did this work:
filled_form = set_values(form,
form$fields[1]$value = "email@email.com",
form$fields[2]$value ="p@ssword")
Any thoughts? Apologies in advance that I can't share the URL.