

- #Katalon studio browser back how to#
- #Katalon studio browser back code#
- #Katalon studio browser back windows#
Use DriverFactoy.changeWebDriver() method to switch the target of WebUI.* keywords to the browser1, to the browser2, and back to the browser1, … You want to create 2 instances and keep them alive. You should create multiple WebDriver instances (ChromeDrvier, FirefoxDriver) yourself. It maintains only 1 session from Katalon process to browser. You should not use WebUI.openBrowser() at all.
#Katalon studio browser back how to#

#Katalon studio browser back windows#
You can keep multiple browser windows (Chrome and Firefox) open, and let Katalon Studio talk to either of them by calling DriverFactory.changeWebDriver(eitherOf2WebDriverInstances) back and forth.īut I wonder if you really want to do this complicated thing. call DriverFactory.changeWebDriver(yourWebDriverInstance), this makes Katalon Studio aware of the browser process you created and let KS to communicate with it when you call WebUI.* keywords.Create instance of of the Browser type you want (Chrome, Headless Chrome, Firefox etc), this will open a new window which is not yet recognised by Katalon Studio.It required me very careful Test-driven development using JUnit4 inside Katalon Studio.
#Katalon studio browser back code#
Is it possible to have katalon studio open different browser types directly through the code in the Script mode? And this referenced page seems to describe a solution, but it is through the console mode, but I don’t use that, I only use script mode and click Run. However, this referenced page is empty and has no directions. The following post seems to discuss this issue: Is it possible to have katalon studio open different browser types directly through the code in the Script mode? For example, I use WebUI.openBrowser("") to open a browser, which ends up being Chrome which is the default, but can I write some code which tells that command to open in a different browser, like Firefox, and then go back and fourth in the script without ever having to click Run multiple times? But in both cases I must select them using the button/selection UI. I can also make custom browser types with profiles. If I wish to change the browser type I must manually select it in the Run button’s dropdown menu. So whenever I run a script I click the Run button and the script opens the Chrome browser and proceeds to web testing. Currently, my default katalon browser is Chrome.
