1. currently you're creating new object in every loop execution, it would be better if WebElement n and nTitle would be created outside the loop