We’ve couple of queries on Katalon Studio Web Testing
How to get the currently opened browser name ?
I need to have single test case to execute on multiple language browsers like Japanese/Russian etc. How to change the browser locale in run time using browser capabilities ?
Basically we will be testing out application on various localized languages, and we would need to take screenshot of the AUT, with naming convention as <AUT’s Page Name>.png
Many thanks in advance!
i got the solution for #1 as ,
WebDriver driver = DriverFactory.getWebDriver()
Capabilities caps = ((RemoteWebDriver) driver).getCapabilities()
String browserName = caps.getBrowserName()
And for #2,
I’ve written a custom keyword to open localized browser based on the locale (loop through from test data properties file) as its capabilities. So now i can launch N no of localized browsers within a single test case
I just realized that, creating and call custom keyword for opening localised browser (say its Chrome) in the testcase instead of WebUI.openBrowser(), it’s not carry over the driver session for remaining any other keywords like click(), waitForElementPresent() etc.,
Could you please help in open browser with custom capabilities