| || |
Limited Tag Options with Dynamic Error Messages
Hi again Folks. The application I'm testing has dynamic error messages that appear next to required fields or invalid data in fields. On some pages more than one of the same error message can appear below the fields.
The HTML involves the insertion of a new table row below the offending field(s) in which the error message is printed. Silk believes these error messages are HtmlHeadings. The only tags that Silk is reading in the tag identifier are index and caption. No prior text is being registered as a tag.
No matter how judiciously I choose my tags from among the available options, I cannot think of a way which the standard options will allow testing of the placement of the error messages depending upon the user's input. For instance someone could have multiple omissions from the required fields, so index will not tell me anything about placement. Text is also the same.
Any thoughts about how to tag or test the error messages other than altering their text?
Segue really needs to work on the tagging options...they are really weak and limited.
Re: Limited Tag Options with Dynamic Error Messages
If you can find the objects in the table, you can use the GetRect () method which will return a record reflecting the location and size of the object. If you get the rect of both objects, you can check whether one is below, above or adjacent to another object.
Type RECT r in script. Put your cursor on the word RECT and press Ctrl-. (control dot) Silk will take you to the definition of the RECT data type. Its fields are xPos, yPos, xSize and ySize.
Hope this helps.
John W Green