alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

This directory contains tests for browser event emulation when driven by the
Selenium javascript engine. There are subtle differences in the eventing
for different browsers, which Selenium attempts to emulate when driving
the app with Javascript.

Current Implementation:
-----------------------
Currently, only the focus, select, click, change and blur events are supported for elements of
types INPUT-TEXT, INPUT-RADIO, INPUT-CHECKBOX, INPUT-BUTTON and SELECT.

The focus event is not supported for the "window" object.

Other HTML events, together with all keyboard and mouse events are not currently emulated.

Key Browser differences:
----------------
1) Firefox PR1 has a bug which allows "focus" and "blur" events to bubble when
the target element is a CHECKBOX, RADIO, BUTTON or SELECT.
(see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents)
*** SeleniumA does _not_ currently emulate this behaviour.

2) Internet explorer has a bug whereby "select" and "change" events do not bubble up from
target elements to enclosing elements.
*** SeleniumA does currently emulate this behaviour.

3) The window.onfocus event is not supported.
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.