Firefox Headless crashes on select option by Label with Regular Expression

Hello,

I’m Facing a issue where Katalon works perfectly Fine with Chrome/ Headless or Firefox… but Firefox Headless crashes when i try to select option by Label with Regular Expression.

In the script are Delays set but those are set to 0 because im using the Smart Wait Function.
Now my question is should I disable Smart Wait and change the Delay to 1 or 2 like i did before or is this a diffent Problem?

The Error Log:Erorrlog.txt (12.2 KB)

Thats the Script(only to the Point of Error + 1 more step):

WebUI.openBrowser(GlobalVariable.URLstudent)

WebUI.setViewPortSize(800, 600)

WebUI.click(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/button_Weiter'))

WebUI.delay(GlobalVariable.Delay)

WebUI.click(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Herr_IN_7090'))

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Vorname_IN_7082'), GlobalVariable.Vorname)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Nachname_IN_7083'), GlobalVariable.Nachname)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Geburtsort_IN_7084'), GlobalVariable.GebOrt)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Geburtsdatum (ttmmjjjj)_IN_7092'), GlobalVariable.GebDatum)

WebUI.selectOptionByLabel(findTestObject('Page_Erffnung Exklusiv Konto/select_GebLand'), GlobalVariable.GebLand, true)

WebUI.selectOptionByLabel(findTestObject('Page_Erffnung Exklusiv Konto/select_Staatsbrgerschaft'), GlobalVariable.Staatsbrgerschaft, 
true)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_E-Mail-Adresse_IN_7085'), GlobalVariable.Email)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_sterr Mobilnummer (0xxx581058)1'), GlobalVariable.Vorwahl)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_sterr Mobilnummer (0xxx581058)2'), GlobalVariable.Telefonnummer)

WebUI.selectOptionByLabel(findTestObject('Page_Erffnung Exklusiv Konto/select_Beschftigungsverhltnis'), 'Arbeiter/Angestellter/Beamter', 
true)

WebUI.click(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/button_Weiter'))

WebUI.delay(GlobalVariable.Delay)

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Strae_IN_7096'), 'SomeStreet')

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_HausnummerStiegeTr_IN_7097'), '11')

WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Postleitzahl_IN_7098'), '1234')

 WebUI.setText(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/input_Ort_IN_7099'), 'Braunau am Inn')

 WebUI.click(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/button_Weiter'))

 WebUI.delay(GlobalVariable.Delay)

WebUI.selectOptionByLabel(findTestObject('Page_Erffnung Exklusiv Konto/select_Fililale'), GlobalVariable.Filiale + 
'.*', true)

WebUI.delay(GlobalVariable.Delay)

WebUI.click(findTestObject('Object Repository/Page_Erffnung Exklusiv Konto/button_Weiter'))

WebUI.delay(GlobalVariable.Delay)

Thats the Error im getting:
Test Cases/***/V-St *** Student/V-St *** Student Visa Full FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to select option by label '1020 Wien, Praterstern 3.
’ of object ‘Object Repository/Page_Erffnung Exklusiv Konto/select_Fililale’ using regular expression
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByLabelKeyword.selectOptionByLabel(SelectOptionByLabelKeyword.groovy:98)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByLabelKeyword.execute(SelectOptionByLabelKeyword.groovy:71)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.selectOptionByLabel(WebUiBuiltInKeywords.groovy:1200)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$selectOptionByLabel$3.call(Unknown Source)
at V-St **** Student Visa Full.run(V-St **** Student Visa Full:54)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1576132478504.run(TempTestCase1576132478504.groovy:23)
Caused by: org.openqa.selenium.ElementClickInterceptedException: Element is not clickable at point (319,273) because another element

obscures it
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘CD-WIN10ACER’, ip: ‘192.168.1.54’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.core.webui.driver.firefox.CGeckoDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 71.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20191202093317, moz:geckodriverVersion: 0.23.0, moz:headless: true, moz:processID: 2928, moz:profile: C:\Users\Christoph\AppData…, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, platformVersion: 10.0, proxy: Proxy(direct), rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: ba0d1f26-6e41-4c7f-9718-17d443aee6de
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CFirefoxDriver.execute(CFirefoxDriver.java:27)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy10.click(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)
at org.openqa.selenium.support.ui.Select.setSelected(Select.java:311)
at org.openqa.selenium.support.ui.Select.setSelectedByIndex(Select.java:293)
at org.openqa.selenium.support.ui.Select.selectByIndex(Select.java:172)
at com.kms.katalon.core.webui.common.WebUiCommonHelper.selectOrDeselectOptionsByLabelWithRegularExpression(WebUiCommonHelper.java:327)
at com.kms.katalon.core.webui.common.WebUiCommonHelper.selectOrDeselectOptionsByLabel(WebUiCommonHelper.java:306)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByLabelKeyword$_selectOptionByLabel_closure1.doCall(SelectOptionByLabelKeyword.groovy:87)
at com.kms.katalon.core.webui.keyword.builtin.SelectOptionByLabelKeyword$_selectOptionByLabel_closure1.call(SelectOptionByLabelKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 17 more

This sounds like a timing issue. As I understand it, SmartWait is about measuring relative stability of the page. You may still need to wait while some JavaScript makes other maneuvers - and looking at your error, that seems the likely issue.

Yes thats what i already thought…
For stability reasons I’ve already disabled the Smart Wait feature and gone back to using delays in the script…

I was just wondering why only in Firefox Headless and not in Firefox in generell

One cant understand everything :smiley:

1 Like