expression.GetText() As String
where expression is a variable that represents a WebElement Object
expression.GetText() As String
'This sample gets text from a field in a Web form Sub GetTextFromForm() Dim Field As WebElement Dim Name As String 'Get the First Name form field Set Field = ThisWebControl.Document.GetElementById("fname") 'Get the text in the field Name = Field.GetText MsgBox Name 'print the form ThisWebControl.PrintPage End Sub