Element not found

Hello guys,
I tried all the methods to click on the field or the calendar icon, but the test fails.
Please offer me a solution if you see an inconsistency in my click object.

Thank you!


Selector :

Error :

I see the attribute, readonly, on the textbox input, so can you click on it manually or is it not available?

Also, there are two span elements at the same level, so you should indicate which one you want with array notation, e.g. [1] or [2].
id("j_idt350")/button/span[1] or id("j_idt350")/button/span[2]

Looks like you prefer xpath, but this CSS selector with a JavaScript click will work:

String js = 'document.querySelector("#j_idt350_input + button").click();'
WebUI.executeJavaScript(js, null)

The + in the selector is the Adjacent sibling combinator which means it will target the button that is the immediate next sibling element following the input element.

Check I spelt everything correctly. :upside_down_face:

Not working :frowning: