I'm fetching the inner text of an object from the screen and then I'm equating it with sometime.
String StrInnerText = Driver.findElement(By.xpath("").getText()
String strtext = '"+StrInnerText+"'
But, when this StrInnerText equates something like "30's" or "I'm", my value becomes something like
String strText = '30's' or 'I'm'
which throws an error. How do I handle this?