When I use the following code
for (int second = 0;; second++) {
if (second >= 60) fail(“timeout”);
try { if (selenium.getAttribute(“id=code@value”).length() == 4) break; } catch (Exception e) {}
Thread.sleep(2000);
}
Return error “java.lang.NullPointerException”
What is the problem?