Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Mechanize stack_depth equilent in mech::firefox

by Anonymous Monk
on Apr 09, 2013 at 17:34 UTC ( #1027790=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey Monks, Is there anything similar to $mech->stack_depth(); in www::mechanize::firefox. For large automation, I am getting warnings like "No result from repl". Any help is highly appreciated. thanks Monks (for this wonderful website.)

Replies are listed 'Best First'.
Re: Mechanize stack_depth equilent in mech::firefox
by Anonymous Monk on Apr 10, 2013 at 07:25 UTC
    stack_depth will not work with WWW::Mechanize::Firefox?

      stack_depth will not work with WWW::Mechanize::Firefox?

      Firefox doesn't have a stack_depth option, and WWW::Mechanize::Firefox simply lets firefox keep the history

      See https://developer.mozilla.org/en-US/docs/DOM/Manipulating_the_browser_history

      You could try ->eval in some javascript emulating the feature of stack_depth,

      But , since I don't write spiders, I find that going ->back works for me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1027790]
Approved by Corion
help
Chatterbox?
[oiskuu]: Prepare your piano with tuna and your cat will show you some love.
thezip has a sudden compusion to dance the tango...
[robby_dobby]: Likewise! I haven't seen a lot of people with HAs back where I come from, so I figured it might be the same around here too...
[robby_dobby]: Oh, shit -- I was replying to someone, but it wound up here. -_-

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2017-11-17 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?