Question: why xpath is better than css?
Answer: CSS selectors perform far better than Xpath and it is well documented in Selenium community. ... Xpath engines are different in each browser, hence make them inconsistent. IE does not have a native xpath engine, therefore selenium injects its own xpath engine for compatibility of its API.