I have a piece of java code which gets all html elements from a page.. I then want to do a comparison between these elements to see if one is the same as another..My code is like:
var elementArray = documentNode.getElementsByTagName(selectOption); // Returns inputs, tables, links etc..
The code that checks for equality is then:
if (elementArray[count-1] == elementArray[count])
The problem is this code evalutes to false, even if there are 2 input elements..Can someone tell me what im doing wrong here? Thanks