Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99418

WebDriver not detecting input textbox, throws ElementNotInteractableException: element not interactable

$
0
0

I've written some code to send input to a textbox as shown below :

enter image description here

enter image description here

enter image description here However during execution, the webdriver returns ElementNotInteractableException even though it shows the input type is a textbox.

I've tried to send input using the following ways but have been unsuccessful, seeking advice, thanks guys!:

1)

driver.findElement(By.xpath("//input[@name='bkg_no']")).sendKeys("ABCDE9000333");

2)

String bkg = "ABCDE9000333"
WebElement bkgNo = driver.findElement(By.xpath("//input[@name='bkg_no']"));";
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("arguments[0].value="+bkg+";", bkgNo);

3)

driver.findElement(By.name("bkg_no")).sendKeys("ABCDE9000333");

4)

JavascriptExecutor jse = (JavascriptExecutor)driver;    
jse.executeScript("document.getElementByName('bkg_no').value='PKG900890300'");

Viewing all articles
Browse latest Browse all 99418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>