Another problem, when i test on firefox,it works fine.But it can'g
work on IE.
Even through i use the spec.find("*").all().set("value='st'"); It
still can't find the element and prompt the exception as below:
Exception in thread "main" java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:417)
at java.lang.Integer.valueOf(Integer.java:554)
at org.watij.webspec.dsl.Tag.length(Tag.java:28)
at org.watij.webspec.dsl.All.length(All.java:13)
at org.watij.webspec.dsl.All.set(All.java:25)
at test.LoginHome1(test.java:19)
at test.main(test.java:37)
> spec.find("input").with("name=='email'").with("id=='email'").with("type='text'").set("value='st'");