Using Robot Framework (with Selenium) to automatically fill a form - it's a checkout page on a ecommerce website, It bugs at the very last step, when trying to enter the CVC code of a test credit card, Robot throws a "InvalidElementStateException: Message: invalid element state: Element is not currently interactable and may not be manipulated" when the field is clearly visible and actionable.
Using Chrome, not Firefox (can't get it to work at all with FF)
I made sure the test scrolls the page down to see the field, but it still considers that field to be hidden or not actionable.
Has anyone run into the same issue here?
Section of the code that fails is here:
Card Payment is Visible
Execute JavaScript window.scrollTo(0,700)
Wait Until Page Contains Expires
Focus xpath=//*[@id="securityNumber"]
I Enter the CC Security Code
Input Text securityNumber ${CHECKOUT_CARD_CODE}
I Click Submit Order
Submit Form forms.payByCardForm
(the bits about "Focus" and "Input Text" are the ones that fail. I validate the text "Expires" is visible, it's right above the CVC field...)
I also tried: Wait Until Element is Visible id=securityNumber
But it still fails. It takes a screenshot and it's clearly there...
Input Text
the same way as you did forFocus
.securityNumber
isn't valid locator. – Jan Kovaříksleep | 3s
just before theInput Text
and theFocus
. It may be down to timing or chrome being too quick or something. Again, may not work but it's what I tend to do to help debug! – Goralight