I'm trying to automate logging in to a website. The website is https://www.remind.com/log_in. Using dump_forms
gives no forms on the page. I tried using this to submit the form anyway, but this fails to compile:
use strict;
use warnings;
use WWW::Mechanize;
my $ua = WWW::Mechanize -> new();
my $remind = 'https://www.remind.com/log_in';
$ua -> get ($remind);
$ua -> form_number(1);
my $uid = 'user@name.com';
$ua->field("uid", $uid );
my $password = 'passcode';
$ua->field("password", $password);
But this fails. Here is the error:
Can't call method "value" on an undefined value
I'm at a loss as to what the problem is.