My scripts in Katalon Studio are running excellent under Chrome as only browser, cannot run as easily with neither IE or Firefox.
I have an odd problem: i ran a script in Katalon and it ends, browser remains open. Now I want to Spy Web or Record from that point on but Katalon does not recognize the browser instance (which i started and in which it executed the script) as ACTIVE BROWSER.
By contrast, if there is a manually opened Chrome or if I open one then Katalon will gladly recognize it as ACTIVE BROWSER and Spy Web or Record.
I have noticed that when I open several Chromes manually the icons gather one behind the other in the system tray all behind the Chrome icon.
On the other hand a Chrome opened by Katalon Studio is placed at the right end of the system tray not behind the Chrome icon.
Is this normal?
Anyone else has seen the same?
First of all I would like to clarify that if you open your browser directly using Katalonm scripts, then it will NOT have an ability to have Katalon add-on installed there. Spy/Record on active Chrome browser requires this add-on: https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid, however this add-on can’t be installed from ‘Open Browser’ step because extensions are disabled.
If you really need Spy/Record on *that* browser, you have to do below steps:
1. Download Katalon add-on: Paste above link into this page to download its crx file): https://chrome-extension-downloader.com/
2. Replace ‘Open Browser’ within your test cases with these lines:
//Set chromedriver path
ChromeOptions options = new ChromeOptions();
//Set Katalon addon extension
DesiredCapabilities capabilities = new DesiredCapabilities();
ChromeDriver driver = new ChromeDriver(capabilities);
With this approach then you will be able to Spy/Record on Active opened browser from ‘Open Browser’ step.