How would I close a tab based on it's title using WWW::Mechanize::Firefox
?
Here is what I currently have:
my $ff = Firefox::Application->new();
my @tab_info = $ff->openTabs();
foreach my $tab (@tab_info) {
if($tab->{title} eq "TITLE HERE") {
$ff->closeTab($tab->{location});
}
}
The documentation for closeTab() just says 'Close the Given Tab' with no information on what the given tab is