Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Mechanize::Firefox and Flash

by PerlSufi (Friar)
on Jun 26, 2013 at 18:03 UTC ( [id://1040823]=perlquestion: print w/replies, xml ) Need Help??

PerlSufi has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
I was wondering, does Mechanize::Firefox work with flash pages? I need to get a file that is accessed by embedded flash..
Here is my code:
my $mech = WWW::Mechanize::Firefox->new(); $mech->allow(frames => 1); $mech->get('https://loginpage.com'); #$mech->dump_text; $mech->form_name('loginform'); $mech->field('email' => 'me@awesome.com'); $mech->field('password' => '$pw'); $mech->click_button(name => 'login'); $mech->get('https://path/to/file.rar);
The get url at the last line is what I was shown in HTTP Live Headers when I tried to download the file manually. The output is:
Not Found at crawl.pl line 27. Any insight is greatly appreciated!

Replies are listed 'Best First'.
Re: Mechanize::Firefox and Flash
by Anonymous Monk on Jun 27, 2013 at 00:30 UTC

    I was wondering, does Mechanize::Firefox work with flash pages?

    No. Sure, it will download the flash page, and run the flash (its firefox), but you can't call methods on the flash, just like javascript can't call methods on the flash, cause firefox/flash/mozrepl don't support that

    You might be able to use Win32::GuiTest or X11::GUITest but I'd much rather figure out what the flash is doing, much less fragile

    FWIW this ought to be discussed in mozrepl/WWW::Mechanize::Firefox::FAQ but I couldn't find it

    Also, flash might have changed to allow some level of manipulation by javascript other than ... but I don't follow that , and it doesn't really jive with adobe's "exclusivity" business model(?)

      Thanks Anonymous Monk
      I'll check out those modules and see if they work..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found