First I used a button element as button and everything worked OK, but I had replace the button with an anchor and the the dialog handling stopped working.
The result after the change to an anchor is that the dialog popsup but after that nothing happends, the execution stop after the Find and Click statement.
Tested using Chrome, and it works with this, but when I'm using Firefox or Internet Explorer. When I'm using Chrome my FindByContent stops to work. :(
The code for handling the ConfirmDialog
var confirmDialog =
//this was Find.ById<HtmlInputButton>("accept").Click(false);
Thanks in advance!