I have two elements on a page that I am grabbing. I am using the selenium getHashCode function to compare the two elements to make sure they are different.
if ((oldQ.GetHashCode() != newQ.GetHashCode())
{
//Do Something
}
Is it dangerous to use the GetHashCode function? I have checked the values and they seem to be unique. These two elements keep changing and I'm not dealing with many elements.