Portal got timeout when perform RPA action

Performing RPA on a log in portal but portal got timeout, how can i allow UiPath to automatically log in again when the error appear saying
Click ‘BUTTON quotePlanA_695’: Cannot find the UI element corresponding to this selector:

Try extending the timeout of the activity or you can use a retry scope to do the action again if it fails.