// Elements have to be present initally and then removed.
constinitialElements=expectation();
if(isRemoved(initialElements)){
thrownewErrorWithStack(
'The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.',