Hope you\'re all well. I\'m quite new to selenium and a complete newbie to stack overflowso i hope i\'m not disobeying any rules here.
I am trying to create a test f
Try to escape html characters by using System.Web.HttpUtility.HtmlDecode
it works for me:
var escaped = System.Web.HttpUtility.HtmlDecode(".//span[text()='Alumina MB China metallurgical grade delivered duty paid RBM/tonne']"); IWebElement element = driver.FindElement(By.XPath(escaped));