Debug mode application executed but when code run application F5 got error

debug mode application executed but when code run application F5 got error.How to got where this occur …?

@Aditya10989

This can sometime happen if the activity executed even before the page has loaded completely.

Try adding a delay before this activity occurs and try again.

If it works with Delay, then choose an appropriate Element to appear or vanish before performing the activity.