0

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.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
JabbaaAAA
  • 39
  • 5

0 Answers0