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]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…