Sc4 1 2 Frame
Created by: Wilco Fiers
Please note, this is a draft
Description
This test case checks that frames and iframes have a none-empty title attribute
Background
Assumptions
no known assumptions
Test properties
Property | Value |
---|---|
Success Criterion | 4.1.2 Name, Role, Value |
Test mode | Semi-automatic |
Test environment | HTML source |
Test subject | single web page |
Test procedure
Selector
Test mode: automatic
Select any frame or iframe element.
Step 1
Test mode: automatic
If the selected element does not have a title attribute, or a title with only non-empty text, return:
Outcome | Failed |
---|---|
Testcase | SC4-1-2-frame |
ID | SC4-1-2-frame-fail1 |
Error | This {element-name} requires a title attribute, which must be descriptive the purpose of the frame |
Step 2
Test mode: manual
Present the iframe to the user, alongside the following question.
frame_title = The value of the title attribute of the frame
Question: Does the title {frame_title} identify the purpose of this frame?
Help text: Some frames only serve to show other pages. In those cases a website name is sufficient. Other times a frame is used to provide a specific function for it’s nearby content. This should be clear from the title alone.
If yes, return
Outcome | Passed |
---|---|
Testcase | SC4-1-2-frame |
ID | SC4-1-2-frame-pass |
If no, return
Outcome | Failed |
---|---|
Testcase | SC4-1-2-frame |
ID | SC4-1-2-frame-fail2 |
Error | The purpose of the frame can not be identified from the title. |