find_with_retry#

async omni.kit.ui_test.find_with_retry(widget_id, max_retries=50)#

Find a widget with retry mechanism, attempting multiple times until found or maximum retries reached.

Parameters:
  • widget_id (str) – Widget identifier to search for.

  • max_retries (int) – Maximum number of retry attempts before giving up.

Returns:

Found widget wrapped in WidgetRef object, or None if not found.

Return type:

WidgetRef