Assertions and Outputting Specific URLs



  • Here's what I've done so far.

    @Kadir public void test() {
    
        String[] list = {};     
    
        for (int i=0; i

    The problem is, this test returns false. It does not find the meta data.

    Any idea why?



  • You can match your text, if it is false, you can save the url. Try following:

    String[] pages = {"http://google.com","http://yahoo.com"};
    ArrayList pagesWithoutMeta = new ArrayList();
    boolean isMetaPresent= false;
    for (int i=0;i

    Hope you get the idea.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2