For weeks I am trying to automate a browsing task.
The task is simple: login, click links, enter variable and submit, logout.
I need to create a website that does this (Sort of a simpler interface) Bare in mind the website is using Servlets and I do not have access to website codes.
At first I tried CURL, but since there were some Ajax Elements in the page curl was not able to show that content.
I tried .NET Webdriver, JUnit, Selenium, etc. But All have failed on rendering ajax elements.
I’ve tried perl and python mechanize, while perl did not work, I was able to get the dynamic content with python.
The problem is not that I have links that are Javascript executions they start with Javascript: and I don’t think I can call functions with Mechanize.
Does anybody know if this task is even possible?
For weeks I am trying to automate a browsing task. The task is simple:
Share
The Perl module
WWW::Mechanizeis the most popular way of automating web-browsing tasks like, downloads, uploads, form submissions, authentication, simple browsing, screen scraping etc. etc.In case the website contains Javascript, the popular Perl module to handle them is to use
WWW::Mechanize::Firefox.So far, “almost” any kind of website including technologies like JavaScript, and Ajax and using SSL security, and or access via proxy server can be handled by a combination of Perl module methods belonging to
LWP::UserAgentandWWW::MechanizeorWWW::Mechanize::Firefox. Loads of example available over the web.