Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Provide a WebDriverWrapper facility to make easy to extend WebDriver #2512

Open
@lukeis

Description

@lukeis

Originally reported on Google Code with ID 2512

WebDriver should contain facilities to easily get started extending it.

Due to the nature of WebDriver's API with its usage of interfaces, functionalities
can't be added by subclassing the WebDriver class. The right way to do it is to use
wrappers together with dynamic proxies.

The attached patch contains two classes: WebDriverWrapper and WebElementWrapper. They
make easy to write own extensions adding new functionalities to an existing WebDriver
instance in a non intrusive way. 

The EventFiringWebDriver should probably extend the WebDriverWrapper.

The unit tests could be improved  but I don't want to spend more time on it as long
as I don't know if it will get integrated.

Reported by [email protected] on 2011-09-21 08:31:31


- _Attachment: [patchWebDriverWrapper.txt](https://storage.googleapis.com/google-code-attachments/selenium/issue-2512/comment-0/patchWebDriverWrapper.txt)_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions