Try having Codeception pause/wait until the modal has finished animating.
$I->waitForElement('#name-of-modal', 2); // seconds
Hi
I have a Bootstrap modal in my app that I can't get Codeception to run an acceptance test on. I get the error message -
Couldn't fill field "deliverables_start_dt","2014-08-28":
InvalidElementStateException: Error Message => 'Element is not currently interactable and may not be manipulated'
I know what the message means, I just don't know why it is happening because in my Codeception script, I make sure the button that shows the modal is clicked first before I try to fill in any fields in the modal.
I am using the WebDriver module with the PhantomJS headless browser.
Any thoughts much appreciated.
Hi Jeffrey
Thanks for replying. waitForElement did not work, but you did get me thinking ... $I->wait did. Oh and so did $I->waitForElementVisible. I am guessing that the latter is preferable ... feel free to let me know if I am mistaken.
Thanks for getting me going in the right direction.
Please or to participate in this conversation.