Skip to main content

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
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
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
Returns
  • ObjectInfosCondition