I'm trying to select the input using the text at the bottom " hello world "
<p>
"test"
<label for="q906318:1_answer" class="accesshide">
Answer
</label>
<input type="text" name="q906318:1_answer" id="q906318:1_answer" size="11" class="form-control d-inline incorrect" readonly="readonly">
<i class="icon fa fa-remove text-danger fa-fw " title="Incorrect" aria-label="Incorrect">
::before
</i>
" hello world "
</p>
but I can't use the
driver.find_element(By.XPATH, "//p[contains(text(),'hello world')]")
Have you any suggestions ?