.net - Execute Selenium 2 Tests Against Remote Browser -


i'd have configuration build server runs nunit test opens , drives browser on remote machine. best way accomplish this?

it easy in selenium 1, because java proxy server sat between tests , browser. in selenium 2, tests communicate directly browser (at least in ie , firefox).

is there way this? possibly wcf service or something?

you need standalone selenium server (current selenium-server-standalone-2.0a6.jar) http://code.google.com/p/selenium/. start command line on remote machine (you need java installed there):

java -jar selenium-server-standalone-2.0a6.jar

also there's .net implementation of server, version behind java one

then should use remotewebdriver:

iwebdriver driver = new remotewebdriver(new uri("http://127.0.0.1:4444/wd/hub"),desiredcapabilities.internetexplorer()); 

and use driver in "local" tests

more info:

http://code.google.com/p/selenium/wiki/remotewebdriver

http://www.google.com/codesearch/p?hl=en#cjyjmzi8hyc/trunk/remote/client/src/csharp/webdriver-remote/remotewebdriver.cs

http://code.google.com/p/selenium/wiki/remotewebdriverserver


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -