+ -
当前位置:首页 → 问答吧 → Perl中IE的操作---仙子姐姐,help

Perl中IE的操作---仙子姐姐,help

时间:2010-12-30

来源:互联网

本帖最后由 suautotest 于 2010-12-31 09:19 编辑

我现在使用的是Win32::Watir模块(跟Win32::IEAutomation模块差不多),有一种场景:当点击一个链接后弹出一个新链接时,该如何获取到这个新链接对象?

作者: suautotest   发布时间: 2010-12-30

这个模块扩展的 Win32::IEAutomation吧?
Win32::IEAutomation是可以访问popup窗口的:
  1. # Catching the popup as new window and accessing controls in it
  2.         my $popup = $ie->getPopupWindow("title of popup window");
  3.         $popup->getButton('value:', "button_value")->Click;
复制代码
个人建议你还是用 Win32::IEAutomation,这个模块信誉好。

作者: 兰花仙子   发布时间: 2010-12-31