This should be quite easy to do using the [listener functionality in
WebDriver](http://rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Support/AbstractEventListener)
by doing the style manipulation in `#before_click`.
My suggestion would be to keep this in a separate gem which provides the
listener. It doesn't have to be Watir-specific. E.g.:
```ruby
require 'webdriver-highlighter'
browser = Watir::Browser.new :firefox, :listener => WebDriverHighlighter.new
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/254#issuecomment-40715255
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development