How can I click on a element while another element is not present

Hi there,

In this case, you can insert a check to check for if an element is not present or not. After the check, you can do preceding action based on the check result.

Example:

if (WebUI.verifyElementNotPresent(findTestObject(‘Page_CuraAppointment/btn_BookAppointment’), 10) == true)
{
WebUI.click(findTestObject(‘Page_CuraAppointment/btn_Continue’))
}