Filtering and performing actions on WebElements