Update the code regarding the operation 'IsElementInvisible', so first we check if the element exist if so, we wait for element not present.