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.
精彩评论