I cannot seem to find a solution on this. This line of code seems to crash if it cannot find it. Sometimes it is there and sometimes it is not:
Integer dynamicElement = myDriver.findElements(By.xpath("//iframe[@title='CAPTCHA']")).size();
I then go on to check the value of my integer, but it crashes when it is not there. How do you get this not to crash?