I have an [object Comment] as follows :
I tried to extract "100.000" with the following :
String my_text = driver.findElement(By.xpath("proper_xpath")).getText();
String my_string = driver.findElement(By.xpath("proper_xpath")).getAttribute("innerHTML");
However both of the results are Failing with an error as :
"The result of the xpath expression "proper_xpath" is: [object Comment]. It should be an element."
Can someone suggest me any other options/alternatives please?
Thanks in advance.