I want to extract the text in the paragraph encircled in the screenshot. But from the last instance of the class, because this text is dynamic. Therefore I want the last text in this class.
I am tried this
String Reply2= driver.findElement(By.xpath("//div[@class='chat-message-content clearfix']/last[]")).getText(); ][1]