while statement

if (WebUI.verifyElementPresent(findTestObject(‘Object Repository/New
Folder/Page_Your store. Wishlist/input_245.00_updatecart’),
5) == true) {
while (WebUI.verifyElementPresent(findTestObject(‘New Folder/Page_Your store. Wishlist/h1_Wishlist’), 5) == true) {
WebUI.click(findTestObject(‘Object Repository/New Folder/Page_Your store. Wishlist/input_Remove_removefromcart’))

    WebUI.click(findTestObject('Object Repository/New Folder/Page\_Your store. Wishlist/input\_245.00_updatecart'))  
}  
  
WebUI.verifyTextPresent('The wishlist is empty!', false)  

} else {
}

first
time it successfully run till the 1st while but 2nd time again it will
go to find the while and fails the test case i am not getting how it
will break and stop the while condition ?