how to read a range of text in a UI and export it

how to read a range of text in a UI and export it

Home Forums Ask Expert how to read a range of text in a UI and export it

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32229
    Sasha ZAP
    Moderator

      Hello ryhelcairo,

      In order to get more the 1 line of text from a single object and save it to an Excel file you can do as follow:
      1. Scan the GUI using “Scan Multiline” (Right to the Scan GUI button there is a small arrow, when you click on it you will see different scanning GUI types).
      2. This is an example code how to getting an object’s multiline text and saving it to an Excel file:

      ZAP.Datatable.ImportExcel(“C:Test.xls”)
      strData = Application(“Application”).View(“View”).Object(“Multiline Text Object”).GetText
      ZAP.Datatable.SetValue “Name of Spreadsheet Columns”, strData
      ZAP.Datatable.ExportExcel(“C:Test.xls”)

      P.S. In order to get started with ZAPTEST please visit the “ZAPTEST Beginner Tutorial” page at:

      Tutorial

      Hope this helps.

      Thanks,
      ZAPTEST Team

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.

    Virtual Expert

    ZAPTEST

    ZAPTEST Logo