/*
* "I'm Feeling Lucky" button is found on Google's home page,
* which tells you that you are rightly landed on Google's
* home page
*/
stateCheck("bt.iamfeelinglucky", "value", "I'm Feeling Lucky");
Assert HTML Element
assertElement method compares the actual value of a html element name with the expected target value. Here the attType param gives additional information about the html element on with the assertion has to be made.
assertField methods compares the actual value of the Product element with the expected value. There are two method variants in this category. The first method with additional param Object objectValue can used when you know exact expected value or the expected value is expected to be from previous test result.
The latter method will perform assertion from the test data found in the excel sheet.
Group assertion is similar to the above element assertion. The only difference is you will be doing assertion on a group. All the Product element under the given group will be asserted in a single go. By setting recursive, Qatts will find all the product elements under the group by continuously looping through subgroups.
Automation process requires loading of test data from the data repository. QATTS has couple of data loading methods that assist in test automation process. These methods work on Product Elements.
Populate Field
populateField method is used to populate the UI element with the test data.