Dear Community Friends,
I have a requirement to manage the Multiple Drivers (Web, Mobile and API) together in Katalon studio.
How to manage.
Scenario:
First I have to initiate Mobile App
Then Goto Web Application and check the Mobile App details are updated in Web application or not
Go back to Mobile App, do some changes in the Mobile App and check them Web Application.
…
PoornaChandraRao
1 Like
Hi,
Are you asking how to work on scenario you mentioned with Katalon?
I think Currently Not Possible!
@Elly_Tran - Will Provide more details about this
Don’t use WebUI.openBrowser()
keyword. The keyword can only open 1 browser window at a time.
You want to call the native Selenium WebDriver API. With it you can open 2 or more browser windows. See the following post of mine, which shows an example code.
You should not use WebUI.openBrowser() at all. It maintains only 1 session from Katalon process to browser.
You should create multiple WebDriver instances (ChromeDrvier, FirefoxDriver) yourself. You want to create 2 instances and keep them alive. Use DriverFactoy.changeWebDriver() method to switch the target of WebUI.* keywords to the browser1, to the browser2, and back to the browser1, …
The following code works for me.
import org.openqa.selenium.WebDriver
import com.kazurayam.ks.webdriverf…