module.exports = { "Manage Product Status": function(browser) { browser.url("http://localhost:8000"); browser.assert.textContains("...", "Expected text is not present"); browser.assert.textContains("...", "Expected text is not present"); browser.click(); browser.assert.textContains("...", "Expected text is not present"); browser.click(); browser.assert.textContains("...", "Expected text is not present"); } }; http://localhost:8000"); .textContains("nav", "Manage Products"); .textContains("#mps-ordered table > tbody tr:nth-child(2) > td:nth-child(1)", "#productid1"); .textContains("#mps-dispatched table > tbody tr:nth-child(2) >td:nth-child(1)", "#productid4"); "#outfordelivery-tab"); .textContains("#mps-outfordelivery table tbody tr:nth-child(2) td:nth-child(1)", "#productid5"); And we will find only "1" person with length "9"