LogoLogo
2.3.1
2.3.1
  • Introduction
  • Getting started
    • Installation
      • On-premises
      • Azure Market Place
      • AWS Market Place
    • Concepts
      • Datadate
      • Datasets
      • Program directory
      • Home directory
      • RDFs
      • Accounts
      • Services
    • Configuration
      • Data Sources
        • Extractors
        • Transformers
      • Catalogue
        • Adjustments
        • Rates
        • Services
      • Administration
        • Configuration
        • Users Groups
        • Workflows
    • Tutorials
      • Amazon AWS CUR
      • Azure EA
      • Azure CSP
      • Azure Stack
    • Releases
      • Upgrading to version 2
      • Archive
  • Diving deeper
    • Extract
      • Templates
      • Script basics
      • Parslets
      • Language
        • aws_sign_string
        • basename
        • buffer
        • csv
        • clear
        • discard
        • encode
        • encrypt
        • escape
        • exit_loop
        • foreach
        • get_last_day_of
        • gosub
        • gunzip
        • hash
        • http
        • if
        • json
        • loglevel
        • loop
        • match
        • pause
        • print
        • return
        • save
        • set
        • subroutine
        • terminate
        • unzip
        • uri
        • var
    • Transform
      • Language
        • aggregate
        • append
        • calculate
        • capitalise
        • convert
        • copy
        • correlate
        • create
        • default
        • delete
        • export
        • finish
        • if
        • import
        • include
        • lowercase
        • normalise
        • option
        • rename
        • replace
        • round
        • service
        • services
        • set
        • split
        • terminate
        • timecolumns
        • timerender
        • timestamp
        • update_service
        • uppercase
        • var
        • where
    • Report
      • Defining reports
      • Accounts
      • Services
      • Summary
    • Integrate
      • API docs
      • GUI automation
        • Examples
      • Single Sign On
        • Azure-AD
        • Auth0
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Diving deeper
  2. Integrate
  3. GUI automation

Examples

Display all invoices

const token = "<token>"
const report = {
  id: 1,
  depth: 3,
  start: "2017-01-01",
  end: "2017-12-31",
  filter: 100
}

Promise.resolve()
.then(() => {
    console.log("Logging in")
    Exivity.navigate.home()
    Exivity.session.refreshToken(token)
})
.then(Exivity.wait.networkIdle)
.then(Exivity.wait.syncComplete)
.then(() => {
    console.log("Selecting parameters for summary")
    Exivity.report.byId(report.id)
    Exivity.report.depth(report.depth)
    Exivity.report.daterangeStart(report.start)
    Exivity.report.daterangeEnd(report.end)
    Exivity.report.filterAccount(report.filter)
    Exivity.navigate.to("reports/summary")
})
.then(Exivity.wait.networkIdle)
.then(() => {
    console.log("Show all summaries")
    Exivity.report.showAllSummaries()
})
.then(() => Exivity.wait.ms(1000))
.then(() => "Ready")
PreviousGUI automationNextSingle Sign On

Last updated 6 years ago

Was this helpful?