Donate Share

WatiN

Tracker: Feature Requests

5 DialogHandler support for multiple browsers - ID: 2882564
Last Update: Comment added ( )

I can't find a feature request for this, but it's in Jeroen's list of
TODO's for cross browser support. So if this is a dup just let me know. I'm
currently trying to abstract out the DialogWatcher/Handlers and putting
the handling logic behind it.

This involves so far making the DialogWatcher a static helper class to
allow for browser abstraction and implementing an interface called
IDialogWatcher. This will allow dialogwatchers per browser as they all do
something different. But from some digging Safari and IE are very close in
dialog style, but not exact.

This will cause a breaking change to people if they store the DialogWatcher
in a variable as it'll need to be converted to IDialogWatcher, but that
should be the only change. Although I predict this scenario to be rare. I'd
hope you'd agree, but the calling of the DialogHandlers should not change
as it'd require too much code change to test writers.


AFarrell ( ) - 2009-10-20 18:16

5

Open

None

Jeroen van Menen

WatiN.Core

Version 2.next

Public


Comment ( 1 )




Date: 2009-10-21 23:48
Sender: AFarrell

Providing an update quicker than I thought. I've successfully handled a
FireFox dialog through code but now I need to put the disjointed code
pieces together. Also the interfaces turned out to be a bad idea, and
instead made a BaseDialogWatcher which turned out to be better.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.