Until
Methods
elementInteractable
public
static
- Wait until the UIElement received as a factor is interactive.
Usage
const okButton = await ui.find(By.path('/Canvas[1]/Register[1]/OkBtn[1]'));
await gamium.wait(Until.elementInteractable(okButton));
await okButton.click();
Arguments
param
UIElement
options
Partial
<QueryObjectInteractableOptions
>
Returns
UIElementCondition
objectLocated
public
static
- Wait until the object is found to the Locator, wait until the object is found.
Usage
const okButton = await gamium.wait(
Until.objectLocated(By.path('/Canvas[1]/Register[1]/OkBtn[1]')),
);
Arguments
locator
Locator
options
Partial
<FindObjectOptions
>
Returns
ObjectInfoCondition
objectsLocated
public
static
- Wait until the Objects corresponding to the Locator received as a factor are found.
Usage
const products = await gamium.wait(
Until.objectsLocated(By.path('/Canvas[1]/ShopView[1]//ProductSlot(Clone)')),
);
Arguments
locator
Locator
options
Partial
<FindObjectOptions
>
Returns
ObjectInfosCondition