开发者

How to control Chrome browser from an NUnit test?

What is the easiest way to control Chrome (pc/mac) from an NUnit test?开发者_运维百科

Things I want it to do:

  • Use a proxy server I specify
  • not bring up any dialog boxes that need to be clicked.
  • open a url I specify
  • close

With firefox I can do all these things by writing out a temp firefox profile, and telling firefox to use it. If someone knows an answer to this question for IE, I'd also love to hear about it.


You need Watin


You can use Watir to do this: http://watirwebdriver.com/browser-proxies/

Unfortunately I don't know if you can use Watir from Ironruby to make this work in an NUnit test without having to many ruby dependencies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜