SyntaxFix
Write A Post
Hire A Developer
Questions
Your code should read -
String kk = wd.findElement(By.cssSelector("div[id^='customSelect'] span.selectLabel")).getText();
Use CSS. it's much cleaner and easier.. Let me know if that solves your issue.