ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

getText() does not get sub-element's inner text if the sub-element is in between the inner text of the element in Google Chrome #969

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
getText() does not get sub-element's inner text if the sub-element is in 
between the inner text of the element in Google Chrome.

Say I have a Web Element with following HTML structure:
<td>.....
<a ...> text1 </a>
text2 <a ...> text3 </a> text4
</a>
...
</td>

and I try to run .getText(), I am getting the following outputs:
FireFox: text1 text2 text3 text4
Chrome Build 38: text1 text2 text4

From what I read in WebElement documentation page, output for the FireFox 
should be the expected output. I am using ChromeDriver v2.12. I also tried to 
run with ChromeDriver 2.11 and 2.9.

Original issue reported on code.google.com by deepa.ma...@gmail.com on 6 Nov 2014 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by andrewch...@chromium.org on 21 Nov 2014 at 1:01

GoogleCodeExporter commented 9 years ago
can you provide us the exact  HTML and test client software so that we can 
reproduce the case.

Original comment by andrewch...@chromium.org on 21 Nov 2014 at 8:01

GoogleCodeExporter commented 9 years ago
It works for me. Is there any CSS that is hiding the text3 element? If you 
could provide the full HTML it would help us investigate this.

Original comment by samu...@chromium.org on 1 Dec 2014 at 11:25

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:19