Macro including desktop and web application scritp

I have a web application which log in from desktop app and open a link on web browser, i have created macro with both desktop and browser script, but when i run this macro, it logging in then not moving to the web application and giving error
UI.Vision RPA is not connected to a browser tab.