Skip to content Skip to sidebar Skip to footer

How To Automate Login With A Webapp?

I'm trying to log into a (what I assume to be a) webapp and I get stuck trying to log into the website. Using WWW::Mechanize does work but in the responses from my post, content it

Solution 1:

That content is the website source :)

How WWW::Mechanize deals with FRAME SRC as a link:

Note that <FRAME SRC="..."> tags are parsed out of the the HTML and treated as links so this method works with them.

You'll want to use follow_link on that link.


Solution 2:

See my answer to this related question. Both PhantomJS and Selenium are good tools for automating interactions with sites that rely heavily on Javascript to display the user interface.


Post a Comment for "How To Automate Login With A Webapp?"