Skip to main content

Posts

Showing posts from November, 2022

How to open a second browser without closing the first in Katalon

  How to open a second browser without closing the first in Katalon                B y default, when you are opening a new browser, it will close the previous one and open a new one. In some cases, we need to do our test activities in both the browsers. As of now Katalon is doing like this. So, we need to do some scripting to achieve this. In this blog, we are going to see how to open a second browser without closing the first. Let’s get into this...! Create two drivers:      public static WebDriver driver1 ;      public static WebDriver driver2 ;           We have to create two different drivers and keep those as a static. So, that you can call anywhere you want across the project. Create a method to open browser: public ChromeDriver openChromeBrowser() {         System. setProperty ( "webdriver.chrome.driver" ,DriverFactory. getChromeDriverPath (...