The right contents of a property

Applying eValid to AJAX applications that require advanced DOM-based methods.

The right contents of a property

Postby thousand » Wed May 04, 2011 3:32 pm

What is a good way to make sure I have the right contents of a property?
thousand
 
Posts: 1
Joined: Wed May 04, 2011 3:28 pm

Re: The right contents of a property

Postby eValid » Fri May 06, 2011 6:26 am

thousand wrote:What is a good way to make sure I have the right contents of a property?

Every web page is made up (at the DOM level) of a series of elements, and each element has a number of named properties, and these properties can
be assigned values.

For example, one element may have an internal property named innerText which has an assigned value like Hello World!.

So the general thing you want to do is to figure out, at test playback time, whether a particular property of a particular element has a particular value. This assumes you know where you want to look (that's a different topic) and what the property name is.

With those pieces of information you can use one of the ValidateSelectedObjProperty command variations to state the property name and the expected value. All you have to do is supply the name of the property, it's index or the value of the id tag for the element and eValid will do the needed search and value checks for you.
eValid Support
eValid
 
Posts: 2395
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons