我想自动化这个场景。用户 A 将一个项目分配给用户 B,用户 B 收到一条警告消息。为此,我想用不同的帐户启动两个不同的浏览器来测试这种交互。有可能这样做吗?如果是,如何?
最佳答案
看起来这个问题已经在我的示例代码中得到了回答:http://stackoverflow.com/questions/213430/selenium-rc-run-tests-in-multiple-browsers-automatically。
firefox = Selenium::SeleniumDriver.new("localhost", 4444, '*firefox', "http://localhost:3000", 10000)
ie = Selenium::SeleniumDriver.new("localhost", 4444, '*iexpore', "http://localhost:3000", 10000)
然后根据需要在不同的浏览器中运行命令。
关于ruby - Selenium RC :How to launch Interactive testing with Multiple browsers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2836313/