I'm trying to use description objects to identify selected the OPTION element in a SELECT element (WebList) so that I can grab the "value" attribute in that OPTION element.

<font class="small">Code:</font><hr /><pre>
Set objWebListDesc=Description.Create
objWebListDesc("html tag").value = "SELECT"
objWebListDesc("outerhtml").RegularExpression = True

Set objWebListOptionDesc = Description.Create
objWebListOptionDesc("html tag").value = "OPTION"
objWebListOptionDesc("micclass").value = "WebElement"

... code ...

' objWebListOptionDesc("selected").Value = ""
Set clnWebListOptions = objESourcingPage.WebList(objWebListDesc).ChildObje cts(objWebListOptionDesc)
Value = clnWebListOptions(0).Object.GetAttribute("value")

' objWebListOptionDesc.Remove "selected"
</pre><hr />

This code will run, but that collection has all of the options. The commented line was one of my attempts to select the specific option element that is selected, but no ChildObjects are found in this situation. I also tried
<font class="small">Code:</font><hr /><pre>objWebListOptionDesc("selected").Value = "true"</pre><hr />
and similar variants.

This is killing me because there should be a way to do this.

My workaround would be to get the index of the selected item, then grab the OPTION element by the matching index. That's just not as elegant. 8-)

Any other suggestions?

Thanks, Derek