Micro Focus QTP (UFT) Forums

Full Version: webelement to handle latest ajax menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Public Function setWebElement(strWebElementText)
Set oWebElement = Description.Create()
oWebElement("micclass").Value = "WebElement"
oWebElement("attached text").Value = ".*" & strWebElementText &".*"
Set setWebElement = oWebElement
End Function