Multiple choice technology testing

Predict the output

Set objEdit = Description.Create  
objEdit(“micclass”).Value = “Link”  
objEdit(“name”).Value = “username”  Browser(“...”).Page(“...”).WebEdit(objEdit).Set “test_user_name”

  1. The code is perfectly valid. It sets the specified value in the web

  2. name property is incorrectly defined for the link object

  3. Syntax of Description object is incorrect.

  4. Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The code creates a Description object for a Link (micclass="Link", name="username"), but then attempts to use it with WebEdit().Set method. This is invalid because a Link object cannot be treated as a WebEdit. The correct approach would be to either create a WebEdit Description or use a Link method like Click.