Is there an equivalent of the Java Robot class (java.awt.Robot) for Perl?

Is there an equivalent of the Java Robot class (java.awt.Robot) for Perl?

+3
source share
5 answers

Alternatively, you can use WWW :: Mechanize to create an agent, as we do at work. We have a tool called AppMon, which is actually just a dramatic wrapper around Mechanize.

The Mechanize module allows you to use scripts that look like this:

use WWW::Mechanize;

my $Agent = WWW::Mechanize->new(cookie_jar => {});

$Agent->get("http://www.google.com/search?q=stack+overflow+mechanize");
print "Found Mechanize" $Agent->content =~ /WWW::Mechanize/;

and will lead to the conclusion "Found Mechanize". This is a very simple script, but rest assured that you can interact well with forms.

Ruby Watir Selenium , ( ) . Selenium firefox, , .

- 2016

, webdriver, Perl .

Selenium:: Remote::

+6
+4

X (Linux/Unix), X11::GUITest.

Windows Win32::CtrlGUI, .

+3

On Windows, I always used Win32 :: GuiTest .

+2
source

On Linux / Unix there are:

http://sourceforge.net/projects/x11guitest

I don't know anything similar for Windows or Mac using Perl.

+1
source

Source: https://habr.com/ru/post/1697021/


All Articles