There is another way, but it involves checking for existing elements until one doesn’t exist. Most tabular data has an id, which you can use dynamically in the selector. You would just increment the id until you find one that doesn’t work. That way, you know the id before that is the one for the final element.