The Internet Explorer Developer Toolbar provides several features for exploring and understanding Web pages. These features enable you to:
- Explore and modify the document object model (DOM) of a Web page.
- Locate and select specific elements on a Web page through a variety of techniques.
- View HTML object class names, ID's, and details such as link paths, tab index values, and access keys.
- Outline tables, table cells, images, or selected tags.
- Display image dimensions, file sizes, path information, and alternate (ALT) text.
- Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.
- Find the style rules used to set specific style values on an element.
- View the formatted and syntax colored source of HTML and CSS.
- Style Tracer: Right mouse click on a style value for an element and select Style Tracer to find the style rule that is effecting that value.
- View Source: View the formatted and syntax colored source of the original page, currently rendered page, element or element with the styles that are effecting it.
Navigate to Google Search, and you should see something like the following.
In this case you can see the name attribute of the field to use in your scripts. Watir can use different attributes of a tag to manipulate that object, so it is important to know what they are. In some cases the attributes are not explicit in the tag such as the text attributes.
No comments:
Post a Comment