Adding message in

I’m using to get list of empty elements. I need to add some text message in;

so I can see that message in report. How can I do that ?

When I add message as"Some message",errorDivs.get(0).getText())

eclipse gives me warning "The method fail(String, Throwable) in the type Assert is not applicable for the arguments (String, String)"



How about "Some message" + errorDivs.get(0).getText() );

Confer the JavaDoc for – the method takes a single String argument.


Leave a Reply

Your email address will not be published. Required fields are marked *