
| Key: |
WET-66
|
| Type: |
New Feature
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Lawrence
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
WET
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
- Windows 2000 sp4
- Internet Explorer 5+
- HTML 4.0
|
|
|
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.
|
|
Description
|
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. |
Show » |
|
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.