my $chrome = $mech->driver; my @tabs = $chrome->getTargets()->get; # Assume that the first tab is the one we want: my $target_tab = $tabs[ 0 ]; if( ! $target_tab->{targetId}) { die "This Chrome doesn't want more than one debugger connection"; } else { $chrome->connect(tab => $target_tab)->get(); }; # Now, the WWW::Mechanize::Chrome object is mostly connected to the new/other tab #### my $mech_tab = WWW::Mechanize::Chrome->new( tab => $new_tab_title );