While on visible element


I would like to iterate on visibility of element “Next” in my page.

I try this but it doesnt work :

while(WebUI.click(findTestObject('Object Repository/Page_Contactez un architecte dans la rgion Ile-de-France pour raliser vos projets devis et infos/span_Suivant'))){

So you want to click on the element while it is present?

while(WebUI.waitForElementPresent(findTestObject(...), 1, FailureHandling.OPTIONAL)) {


thank u for your answer.
it doesnt work, i have this error :

08-10-2019 01:54:32 PM Test Cases/TC_Principale

Elapsed time: 15,198s

Test Cases/TC_Principale FAILED.
groovy.lang.MissingPropertyException: No such property: FailureHandling for class: Script1565367980939
	at TC_Principale.run(TC_Principale:25)

with ctrl + shift + o

Does it work now?

Yes thank u Marek_Melocik