Wait
  • 1 Minute to read
  • Dark
    Light
  • PDF

Wait

  • Dark
    Light
  • PDF

Article summary

Wait until time-limit has been reached or condition has been met

KeyValue(s)Description
method"Wait"Wait until time-limit has been reached or condition has been met
millis5000Optional.  Number of milli-seconds to wait
type"exists"
"notexists"
Optional.
exists - wait until specified object exists
notexists - wait until specified object doesn't exist
search{}{
"name": "ObjectName"
"class": "ObjectClass"
}
Optional.
name - object name (case sensitive)
class - object class. Supported classes:
  • BTable   (table object)
errorOnTimeout
true/falseAdded in v6.5.2.1

Examples

//table is deleted in the timeout windows

[
  {
    "method": "Wait",
    "project": "eyeota",
    "type": "exists",
    "search": {
      "class": "BTable",
      "name": "dddd"
    },
    "timeout": 5000,
    "errorOnTimeout": true
  },
  {
    "timedout": false
  }
]
//with error in timeout
[
  {
    "method": "Wait",
    "project": "eyeota",
    "type": "exists",
    "search": {
      "class": "BTable",
      "name": "dddd"
    },
    "timeout": 5000,
    "errorOnTimeout": true
  },
  {
    "timedout": true,
    "errors": [
      "timeout on Wait"
    ]
  }
]
//wait for a table to be deleted
[
  {
    "method": "Wait",
    "project": "eyeota",
    "type": "exists",
    "search": {
      "class": "BTable",
      "name": "dddd"
    },
    "timeout": 5000
  },
  {
    "timedout": true,
  }
]
{
  "method": "Wait"
  "millis":5000
}
{
  "method": "Wait",
  "type": "exists",
  "search": {
    "name": "Product",
    "class": "BTable"
  }
{
  "method": "Wait",
  "type": "notexists",
  "search": {
    "name": "Product",
    "class": "BTable"
  }
}

Was this article helpful?

What's Next