After upgrading to Katalon 10.1.1. from 9.7.6. for every test I start Katalon focuses the browser’s address bar at the top.
This is no issue in most tests, but I have a few tests where I enter some sort of barcode via sendKey and submit via ENTER. The browser then just goes to whatever I “typed” into the address bar via google search and gives me the “are you a robot” warning.
I tried focusing something in the page to lose focus of the address bar but I it won’t work.
!ENTRY org.eclipse.e4.ui.workbench 4 0 2025-03-31 10:56:46.270
!MESSAGE Widget is disposed
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
but that’s like almost two hours ago.
I also tried
WebUI.sendKeys(findTestObject('Object Repository/backdrop'), Keys.chord(Keys.F6));
// and
WebUI.sendKeys(findTestObject('Object Repository/backdrop'), Keys.chord(Keys.ESCAPE));
since both defocus the address bar, without success.
I updated the Firefox webdrivers but still cannot start my test.
Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line
I sadly cannot invest time into getting the tests to work in Firefox.
It seems as Katalon won’t recognize any clicks as “clicks that change focus” since I am clicking into login/password text fields and then pressing a submit button → which should remove focus from the address bar.
I also tried sending it CTRL+F6 but it still didn’t work.
I deleted the --app=... flag and the url bar is no longer in focus. Prior to deletion I had two separate windows (one BiDi-CDP Mapper and my page) and now I have two tabs in one window.