Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by mscha (Acolyte)
on Sep 06, 2020 at 15:41 UTC ( [id://11121411]=note: print w/replies, xml ) Need Help??


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 (Vicar) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121411]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found