如何在通过Sahi脚本打开新浏览器后在新浏览器上运行sahi脚本

时间:2013-12-23 05:45:43

标签: testing automated-tests sahi

我可以使用sahi脚本从浏览器打开firefox浏览器,如:

var $path = "C:\\Program Files\\Mozilla Firefox\\firefox.exe";

//var $name = "firefox";

var $browseroption = " -profile D:\\sahi_pro_V4.0\\userdata\\browser\\ff\\profiles\\sahi1 -no-remote";

_execute($path + $browseroption);

但是,当我在此之后给出_navigateTo时,它会在第一个浏览器中执行。是否可以在新打开的firefox浏览器中运行它?

1 个答案:

答案 0 :(得分:1)

这可能会迟到,但根据您的测试要求,以下两个API之一可能会有用:_launchNewBrowser_openBrowser