CSS selectors should be avoided because they are prone to change, which can lead to false negatives in tests.