Selenium and Java: How do I get all of the text after a WebElement
Selenium and Java: How do I get all of the text after a WebElement I am coding a program in Java using WebDriver and am having a little bit of trouble getting the text after the select webElement. The HTML code for the part of the website that I want is as follows: <div id="content"> <div id="Pagination"></div> <div id="mid"> </div> </div> The textbox class codes for a search bar and a drop down bar of languages My Java code is currently able to open chrome using the chrome driver and is able to type into the search bar. I am however not able to get the text that results from the entry. Image In the image here, I entered "avoir" into the search bar, and I want all of the text inside the boxes after which do not seem to have any id's or names to be used inside the xpath. Can someone please help me in finding how to get and save the text from those fields after the dropdown l...