Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have created a website using html css php and some javascript along with a database and it works perfectly fine all the buttons and elements are present there're no errors and it functions as it should. the problem is that i have been asked to test it with an AutoQA tester and even though it functions as it should i got this error from the tester and i don't know how to fix it

<pre>
Error: Clickable element "ADD" 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:2770:11)
    at WebDriver.click (node_modules/codeceptjs/lib/helper/WebDriver.js:859:7)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
I }) => {
        I.amOnPage('/');
        I.click('ADD');
        I.seeElement('#product_form');
        I.fillField('#sku', 'SKUTest000');
        I.fillField('#name', 'NameTest000');
        I.fillField('#price', '25');
        I.selectOption('#productType','DVD');
        I.fillField('#size','200');
        I.click('Save');


ps. i am required to only use the languages mentioned above.

What I have tried:

i have tried googling the problem which lead me to install selenium and phpunit is there anyway to fix the problem?
Posted
Updated 8-Dec-21 8:16am

1 solution

Sup there!
Im facing the same issue, but on my case the error shows up at first test:

Error: Clickable element "ADD" was not found by text|CSS|XPath

Error: Clickable element "ADD" 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:2835:11)
at WebDriver.click (node_modules/codeceptjs/lib/helper/WebDriver.js:917:7)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I }) => {
I.amOnPage('/');
I.click('MASS DELETE');
I.click('ADD');

Weird thing is: all the remaining test call ADD button functionality with no problem, also product table is populated. Your test pass me with no problems.
Are you still interested on solving it? Send me an e-mail maybe we can help eachother.
Cya around! martineduardogonzalez@gmail.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900