No idea how to address this input text field element with selenium / Java (openjdk 11 2018-09-25).
I tried xpath, cssSelector etc. it never works. Its always "Unable to locate element".
<slot name="input">
<input part="value" tabindex="0" aria-labelledby="vaadin-text-field-input-3">
</slot>
This did NOT work:
driver.findElement(By.xpath("//input[@aria-labelledby='vaadin-text-field-input-3']")).sendKeys("test");
Is there a solution for this?
UPDATE:
This thread solved partly my problem. The solution that worked for me can be found here link.
Looks like part of HTML looks like:
Much better is to build your XPATH locator from some id field:
Also, as mentioned earlier have to check:
input
element is not dynamicIf you found solved that comment you could move to the code part and use the founded locator with WebDriver:
Also, keep in mind that you have to know that element is already loaded on a page. As suggested before you could use some explicit wait for your element.