Dim instance As WebElement Dim attribute As String Dim returnValue As Object returnValue = instance.Attribute(attribute)