I am currently working on a webpage that features a series of radio buttons, each accompanied by a help icon. When this icon is clicked, it triggers a popup with helpful information. I am in the process of using Selenium WebDriver to extract this help text. My goal is to specifically obtain the text "HELP TEXT 2". I would greatly appreciate assistance regarding how to construct an XPath or locate the help text using CSS. If there are simpler methods aside from XPath or CSS that you can suggest, please share them with me. For this task, I am utilizing Firefox and implementing Java bindings for Selenium.
<div class="a">
<div class="b" tabindex="0">
<input tabIndex="0" id="1">
<div class="c">
<label for="1"> apple </label>
<div class="d">
<span>Help</span>
</div>
<div class="f" role = "doc">
<div class="g">
<div class="h">
<button type="button" class="close"></button>
</div>
<div class="i" tabindex="0">
HELP TEXT 1
</div>
</div>
</div>
</div>
</div>
</div>
<div class="a">
<div class="b" tabindex="0">
<input tabIndex="0" id="2">
<div class="c">
<label for="2"> orange </label>
<div class="d">
<span>Help</span>
</div>
<div class="f" role = "doc">
<div class="g">
<div class="h">
<button type="button" class="close"></button>
</div>
<div class="i" tabindex="0">
HELP TEXT 2
</div>
</div>
</div>
</div>
</div>
</div>