Relative Content

Tag Archive for selenium-webdriverxpath

XPath search with text containing soft hyphen

/div[contains(text(),”Inverter”)] This is the code that we currently used to map some objects in selenium with xpath. The problem now is, that they introduced soft hyphens now into their code and the text “Inverter” now is “In­ver­t­er”. I already tried a little around with translate and replace but did not manage to make it work […]

XPath search with text containing soft hyphen

/div[contains(text(),”Inverter”)] This is the code that we currently used to map some objects in selenium with xpath. The problem now is, that they introduced soft hyphens now into their code and the text “Inverter” now is “In­ver­t­er”. I already tried a little around with translate and replace but did not manage to make it work […]