我想将Selenium RC与Perl客户端驱动程序一起使用。如何使用Perl配置Selenium RC?
发布于 2010-06-22 22:05:50
使用WWW::Selenium
模块链接到Selenium RC。
您需要在后台运行Selenium RC,才能使其运行。我发现从Perl中启动它的一种有用的技术是在单独的线程上执行它,然后立即detach
它:
use threads;
my $seleniumThread = # Assumes that your Selenium RC file is in the current dir
threads->create( sub { system "java -jar selenium-server.jar"; } );
$seleniumThread->detach;
# Avoids the main program from having to wait for the system call to end
下面的问题可能也很有用:
发布于 2012-07-05 23:03:15
提醒一下..。对于Selenium 2.0,您将希望使用Selenium::Remote::Driver
模块;WWW:Selenium
适用于1.0。
来自Selenium文档(http://seleniumhq.org/docs/03_webdriver.html):
Perl绑定是由第三方提供的,请参考他们的任何文档,了解如何安装/入门。在撰写本文时,有一个已知的Perl绑定。[带到https://metacpan.org/module/Selenium::Remote::Driver的链接]
https://stackoverflow.com/questions/3093546
复制相似问题