I'm trying to insert a value into a text box located in a web page.
Text box appears at the bottom of the web page and the element is not locatable by the code. I should Inspect two times to see the table value in Chrome (first time it shows a different/parent HTML all together) that suggests us that there are multiple layers and requires finding in deep.
I've tried inserting the string as shown below..
driver.find_element_by_id("arid1005").send_keys("TESTING")
and
elem = driver.find_element_by_id("arid1005")
driver.execute_script('arguments[0].value = "TESTING";',elem)
I've also tried finding the elements by Class Name, CSS, Xpath but end up getting
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
When I inspect 2 times, the below table gets highlighted.
<table class="SearchBarInput" width="100%">
<tbody>
<tr><td width="">
<textarea style="width:99%;height:21px;" class="sr" cols="" wrap="off" rows="1" id="arid1005"></textarea></td>
</tr>
</tbody>
</table>
Can somebody throw some light on what I'm missing here? Sorry if this question was already asked but I couldn't find any relevant so far.