Using the $mech->find_all_links_dom method I get an array of links on a page. For each $link in the array I want to open it in a new tab. I can't figure out how to do this, and advice would be great.
Perl - WWW::Mechanize::Firefox - Open link in new tab
809 views Asked by Dr.Avalanche At
1
This is one way to work:
AFAIK,
WWW::Mechanize::Firefoxopens the page in the same tab for a given object ($mech). So, I run aforeach loopand create a new object for each link. This may not be the BEST approach but this works.