$sel->wait_for_element_present($locator, $timeout) Waits until $locator is present $timeout is a timeout in milliseconds, after which the action will return with an error. #for your example, $sel->wait_for_element_present("xpath=\"XXXXX\"",60000)