[英]Mechanize Firefox synchronize option is not working
I am trying to use Mechanize::Firefox but it is hanging after the first click. 我正在尝试使用Mechanize :: Firefox,但是第一次单击后它挂了。 When you pass in the object to click it does not seem to be honoring the synchronize flag.
当您传递对象以单击它时,它似乎并没有遵循“同步”标志。 Any ideas?
有任何想法吗? Is this a bug or am I just doing it wrong?
这是一个错误还是我做错了?
my @objects = $mech->selector(‘input’);
foreach my $object (@objects){
$mech->click($object,{synchronize => 0});
select(undef,undef,undef,2);
}
I figured it out. 我想到了。 The following code works.
以下代码有效。
my @objects = $mech->selector(‘input’);
foreach my $object (@objects){
$mech->click({dom=>$object,synchronize => 0});
select(undef,undef,undef,2);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.