I wonder how to return an empty List when i try to find some WebElement but nothing found.
Of course i want to avoid crash so this is what i have try:
def getList(): List[WebElement] = {
try {
driver.fineElements(By.xpath("bla bla))
}catch{
case e: TimeoutException => // What should i put here ???
}
}