Forum Discussion

mangelastro's avatar
mangelastro
New Contributor
13 years ago

How to extract a specific value generated in a web application

I'm new to test complete and love the NativeWebObject.Find strategy for finding objects and running test automation in a web application.  Now I just need to figure out how to extract a number that's generated from a script I'm running.  I'm automating an application that creates a Wire request to send funds to payee, Once the wire is complete a number is generated that I need to 'Approve' the wire.



Does anyone know of any built in features or a VBScript function to pull this data from the site?  Any help would be appreciated.



Thanks


  • Thanks for all the replies!



    Figured it out using aqObject.GetPropertyValue



    Set rpiCompleteWirePage = Sys.Browser.Page("https://www.someurl.com")

    Set SeqNrObj = rpiCompleteWirePage.NativeWebObject.Find("InnerText", "Reference Numb*")

    PropValue = aqObject.GetPropertyValue(SeqNrObj, "InnerText")

    Log.Message(PropValue)



    Now just have to strip out the value i need since it gives me a long value