ray.rick.mini has asked for the wisdom of the Perl Monks concerning the following question:
my ($contest, $type) = $mech2->eval_in_page( 'Diary' ) or warn "$!"; print Dumper \$contest; print Dumper \$type;
Resulting in:
MozRepl::RemoteObject: ReferenceError: Diary is not defined at ./test.pl line 144.Of course content() or text() methods return only empty textareas.. I'm searching good suggestions. I would like if possibile to inject JS code to dump every single variable that is readable in current page context..I'm afraid that Diary is not readable or out of scope..There is a way to do this? thanks for any help or good suggestion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Javascript variables access help with WWW::Mechanize::Firefox
by Anonymous Monk on Sep 28, 2016 at 23:28 UTC | |
by ray.rick.mini (Sexton) on Sep 29, 2016 at 00:19 UTC | |
by Anonymous Monk on Sep 29, 2016 at 00:34 UTC | |
by ray.rick.mini (Sexton) on Sep 29, 2016 at 23:52 UTC |