I use WebDriver and ChromeDriver. How i can fetch text from this speech bubble:
[]
And code this speech bubble from website:
Thank you for your help!
I use WebDriver and ChromeDriver. How i can fetch text from this speech bubble:
[]
And code this speech bubble from website:
Thank you for your help!
Use xpath to get it
//img[@data-id='c085ede491334747f26718fc2e8009e3')]
You can use this code and try:
driver.findElement(By.xpath("//img[@data-id='c085ede491334747f26718fc2e8009e3')]")).getAttribute("data-content");
Looks like id is dynamic. You can try to use the phrase in data content for searching:
findElement(By.xpath(".//img[@data-content = "your text"])).getAttribute("data-content");
If you need to get text and validate it (e.g. text inside of data content can be different), you can search by class:
driver.findElement(By.className("smarty-tip-wrapper")).getAttribute("data-content");
Maybe the problem is everything is included in the table? if i think well