Selenium | Debug/Run Script on Existing Browser

preview_player
Показать описание
In this video , we are gonna see that how to execute your test scripts on existing browser. This becomes really beneficial, when you have a very large application and you have to browse a lot of pages or to do a lot of pre-requisites.

If you run your scripts it will take time to reach that page where your scripts are failing. So you can manually navigate to the desired page on the existing browser and then can directly run your script to identify the issues.

To run chrome browser on specific port for debugging , enter below command in cmd prompt.

After that add chromeoptions and set the experimental option by providing the debuggerAddress.

ChromeOptions options = new ChromeOptions();
driver = new ChromeDriver();

Then run your test. Your script will run on the existing browser.

*************Please comment in case of any query**************

Also please watch other videos as well.

Рекомендации по теме