Can you please advise how to rewrite the below code with contains syntax for Dynamic Name? Please refer the attached screen capture. Thanks a lot.
WDS.browser.findElement(org.openqa.selenium.By.xpath("//li[@id='cascader-menu-9503-0-3']/span")).click();
