Error Messages
Following are the error messages, descriptions and how to resolve
- Element with specified selector was not found
- Element not intractable
- Assertion failed
- Error in executing script
- Internal Error Occurred
1. Element with specified selector was not found
a. An element could not be located on the page using the given parameters
Description: The results of your search/values entered have changed in your DB, example if login credentials are changed, after login click it throws error saying login failed and test case does not find its next element. It throws element not found.
How to resolve: Check the screenshot with respect to the steps/actions performed, if your application could not find the search values.
b. An element has been removed from web page
Description: Element step could not be completed because the element is not visible/ removed from webpage.
How to resolve: Check the screenshot if element has been removed from the web page.
c. An element CSS has changed
Description: Element CSS has changed during new built release or deployment (or) argument was an invalid selector.
How to resolve: Check the screenshot, if you do not find any error message or if the element exists in the page, please check the CSS path of that element using Pick CSS in Chrome Extension, if CSS has changed, replace with new and re-execute.
d. Page has loaded, But element is taking time to load
Description: At times element in page takes time to load (e.g, while saving details the element takes time) the test case will fail at this element, because of element time out
How to resolve: Check screenshot, If you find element is taking time to load, go to that element in edit steps and add a step pause, give the time(in seconds) and save it.
e. An attempt was made to select an element that cannot be selected
- Description: An element step could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).
2. Element not intractable
a. Page did not load, in which element is present
Description: Element not found as its page timeout time expired (Suppose page time out is 5 sec and page took 10 sec to load) then test case will fail saying element not intractable.
How to resolve: Check the screenshot in the results page, if you find the page is loading in screenshot, try to perform the same steps manually to replicate page speed, if page is taking time, increase the Element Timeout in app preferences page.
3. Assertion failed
Description: When expected value is not equal to the actual value, it throws assertion failed error.
How to resolve: Hover/click on the failed status of test case, It shows the actual and recorded text, manually check if the text is changed in your application. If yes, change the asserted text and re-execute.
4. Error occurred while executing script
Description: An error occurred while executing user supplied JavaScript.
How to resolve: Recheck the entered JavaScript (or) run the script in console to verify if it works or not.
5. Internal Error Occurred, Contact customer support
- Please re-execute the test case, if the error still persists kindly contact CloudQA Support.