I click an element y test fails, but when you see the screenshots the click was made.
Test sees the element exits before clicking it.
What do you get instead?
Error can't found element
Provide console output if related. Use --verbose mode for more details.
Clickable element ".btn-primary" was not found by text|CSS|XPath
Scenario Steps:
- I.click(".btn-primary") at Object.login (steps_file.js:26:12)
- I.wait(2) at Object.login (steps_file.js:25:12)
- I.seeElement(".btn-primary") at Object.login (steps_file.js:24:12)
- I.fillField("#j_password", "A1b2c3d4") at Object.login (steps_file.js:23:12)
- I.fillField("#j_username", "pruebaqa.maks@gmail.com") at Object.login (steps_file.js:22:12)
- I.amOnPage("/login") at Object.login (steps_file.js:21:12)
Error: Clickable element ".btn-primary" was not found by text|CSS|XPath
at new ElementNotFound (node_modules/codeceptjs/lib/helper/errors/ElementNotFound.js:14:11)
at assertElementExists (node_modules/codeceptjs/lib/helper/WebDriver.js:2675:11)
at WebDriver.click (node_modules/codeceptjs/lib/helper/WebDriver.js:839:7)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
What are you trying to achieve?
I click an element y test fails, but when you see the screenshots the click was made. Test sees the element exits before clicking it.
What do you get instead?
Error can't found element
Details
I have the same issue in the same project, but other feature
Code: