我想使用perl 模块与运行 High Sierra 的 Mac 上X11::GUITest
的模块一起控制我的浏览器。WWW::Mechanize::Firefox
我下载并安装了XQuartz。我不确定下一步该怎么做才能让它发挥作用。当我尝试:
use X11::GUITest qw(SendKeys FindWindowLike ClickWindow SetEventSendDelay QuoteStringForSendKeys);
我得到:
dyld: lazy symbol binding failed: Symbol not found: _XOpenDisplay
Referenced from: /Users/me/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/darwin-2level/auto/X11/GUITest/GUITest.bundle
Expected in: flat namespace
dyld: Symbol not found: _XOpenDisplay
Referenced from: /Users/me/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/darwin-2level/auto/X11/GUITest/GUITest.bundle
Expected in: flat namespace
Abort trap: 6
我想要做的甚至可能吗?