in reply to Re: WWW::Mechanize::Chrome - how to deal with new windows/tabs
in thread WWW::Mechanize::Chrome - how to deal with new windows/tabs

> https://metacpan.org/pod/WWW::Mechanize::Chrome#$mech-%3Etab

Yes, I read the documentation. But I don't see how that helps me.

  • Comment on Re^2: WWW::Mechanize::Chrome - how to deal with new windows/tabs

Replies are listed 'Best First'.
Re^3: WWW::Mechanize::Chrome - how to deal with new windows/tabs
by perlfan (Parson) on Sep 06, 2020 at 17:02 UTC
    >Access the tab hash of the Chrome::DevToolsProtocol::Target instance.

    Never used this before, but I am going to guess that this means $tag is a hash reference that contains all the opened tabs. Maybe explore the contents of $tag in the example.

Re^3: WWW::Mechanize::Chrome - how to deal with new windows/tabs
by Anonymous Monk on Sep 06, 2020 at 16:16 UTC

    Why not?

      It only tells you how to retrieve some information about the current tab, like:

      attached: !!perl/scalar:JSON::PP::Boolean 0 browserContextId: 4F77752E9E1225BBC19EF5CB31D66B67 targetId: 3E511FAEF5817D9DAF092EB001F662D6 title: '' type: page url: about:blank

      It doesn't tell you how to change the tab you're looking at.