History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WET-66
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Lawrence
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WET

Ability to access <span> and <div> elements

Created: 03/Jul/06 12:27 AM   Updated: 09/Jul/07 01:52 AM
Component/s: WET DOM Interface
Affects Version/s: 0.8.0
Fix Version/s: 1.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
- Windows 2000 sp4
- Internet Explorer 5+
- HTML 4.0


 Description  « Hide
It would be great to have the ability to access <span> and <div> elements as they are common tags used in web applications. As web applications get more and more complex, these tags are being used to encapsulate other elements, while allowing custom scripts to be triggered via various events.

Accessing these elements could be via:

1. the 'name' attribute
2. the 'id' attribute
3. the index position
4. the 'title' attribute

Once these elements are accessible, events may be triggered via the already implemented method, fire_event, which is part of the WATIR object, Element.

 All   Comments   Work Log   Change History      Sort Order:
Raghu Venkataramana - 23/Jan/07 02:48 AM
The following methods have been included for a webcontainer:

container.div(props)
container.span(props)
container.p(props)

Additionally, a more generic method has been added:
container.element_by_tagname(tag_name, props)

through which any type of html element can be referenced. Note that props has to be of the type hashtables.

Raghu Venkataramana - 02/Apr/07 10:50 PM
Release Notes