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 tries to use it with WebEdit(). WebEdit expects an edit box description, not a link description. The Set method is valid for WebEdit but cannot be applied to a Link object. Option A is incorrect because there's a type mismatch. Option B is incorrect because 'name' is a valid property. Option C is incorrect because the Description.Create syntax is valid.