I have written an nUnit test using selenium in c#.
All was going well until I have to confirm a JS confirm box.
here is the code I am using:
You just need:
IAlert alert = driver.SwitchTo().Alert(); alert.Accept();