Maybe the answer is straightforward, but does anyone know for sure, whether Selenium with XPath work properly with HTML which is not XML, i. e. contains open tags? In my case those are <col> and <input>.
The reason I’m asking is that our automation testing team often encounters the problem, that in some cases Selenium XPath selector doesn’t work, whereas the same XPath selects elements on the same page, when we use it in FirePath, for example. Can it be because of the fact, that our HTML is not a valid XML? As far as I know, XPath was originally invented to deal with XML data.
XPath operates on a DOM. Browsers generate a DOM. Selenium interacts with browsers.
Dealing with HTML should not cause a problem for it.