I remove the code lines for killing the browser process. basically before launching the browser i am killing the browser process. Then launch the brand new browser. We do have basic authentication dialog process that come whenver we navigate to any application URL.
Now after running tsconfig utility our script hangs at the basic authentication dialog , script enter the username and password and the it hang there.