title: AssertionError: object tested must be an array, a map, an object, a set, a string, or a weakset, but object given
body: <p>I am trying to assert a drop down value under tab <code>li</code>. Here is my code for that:</p>
  
  <pre><code>await searchPage.enterSearch("/html/body/nw-search/nw-text-search/div/div/div/div/div[2]/input","Honda");
  await  element.all(by.css("body &gt; nw-search &gt; nw-text-search &gt; div &gt; div &gt; div &gt; div &gt; div.autocomplete-wrapper &gt; ul &gt; li:nth-child(1) &gt; ul li")).then(async function(items) {
                expect(items.length).equals(5);
                await  expect(items[0].getText()).contain("honda: Civic");
              });
  </code></pre>
  
  <p>However, while running the above code I am getting below error. Even though I am passing a string. I tried both single quotes and double quotes. :</p>
  
  <blockquote>
    <p>AssertionError: object tested must be an array, a map, an object, a
    set, a string, or a weakset, but object given</p>
  </blockquote>