Dim instance As WebDriver Dim pattern As String Dim group As Short Dim returnValue As String returnValue = instance.PageSourceMatch(pattern, group)