Selenium | Debug/Run Script on Existing Browser

Опубликовано: 28 Октябрь 2024
на канале: Maximum Automation
1,786
13

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.
chrome.exe --remote-debugging-port=1999 --user-data-dir="C:\Project\DebugProfile"


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


ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("debuggerAddress", "127.0.0.1:1999");
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.

Add Java properties configuration file in framework - Selenium Java -    • Configuration file in automation fram...  

Parallel execution of cucumber scenario TestNG :    • Parallel Execution of Cucumber Scenar...  

Selenium with C# - Klov Report :    • Selenium with C# | Klov Report Server  


Selenium with C# - Extent Report :    • Selenium with C# | Extent Report  


Selenium with C# - Create Project to automate test (Selenium + Specflow ) :    • Video  


Selenium with C# - Parallel Execution and Screenshot :    • Video  


Selenium with C# - All about feature files :    • Video  


Selenium with C# - Specflow - External Bindings :    • Selenium C# | Specflow | External Bin...  


Selenium with C# Working with Excel - Part 1 :    • Video  


Selenium C# - Visual Studio Code :    • Selenium C# | Visual Studio Code | No...  


Log4J2 - Logging in Java Framework :    • Video  


Selenium with Java - Create Junit Cucumber Project :    • Video