In some of the app page object spy is not working(sometimes) which results in half execution of script

At the time of recording the complete script got recorded, now i am playing that same script its not executing showing an error
org.openqa.selenium.NoSuchElementException: no such element (An element could not be located on the page using the given search parameters (XPATH=’//*[@id=‘nav_fab_start’]’)) (WARNING: The server did not provide any stacktrace information)
When i go to that screen to verify the presence of element using object spy, the tool cannot spy on the objects sometimes.
how to resolve this issue?

my guess is that you are working with instrumentation from the tool but not from the code environment

  1. can you attach a list of the capabilities that you pass over?
    check if you need to use dc.setCapability(“instrumentApp”,true);
  2. can you share a screenshot with the object spy when the element is visible, and when it’s not?