I have a question regarding selenium, I try to fill a form, and the id of the input text is: //input[@id='company']. In selenium I get an error about this element not found:
Sun Sep 22 18:13:27 IDT 2019:ERROR: no such element: Unable to locate element: {"method":"id","selector":"//input[@id='company']"}
(Session info: chrome=76.0.3809.132)
(Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.1.7601 SP1 x86_64)
This is my method
public static void inputValueById(String input,String id)
{
WebElement element = getWebElementByIdWithWaitToBeSeen(id);
element.click();
element.clear();
element.sendKeys(input);
}
the problem is that selenium not find the element, it finds it in the dev tools as you can see