Firefox always selects the first element of a list

Hello,
On a page, there is a list of countries. I would like to register the selection of a country.

When I use Web Recorder with Firefox, it does not work.
When I run the test case with Firefox, it is the first country in the list that is selected.
For example, I choose “ALBANIE” with the Recorder and when I run, it displays “AFGHANISTAN”
I use the item “Click”

Here is the code of the list
countries.xml (446 Bytes)

I need your help
Thnaks

Hi,
Share your test case

Here the test case

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser(’’)

WebUI.navigateToUrl(…)

WebUI.setText(findTestObject(‘Object Repository/test pays/Page_Connexion/input_(requis)_username’), ‘…’)

WebUI.setEncryptedText(findTestObject(‘Object Repository/test pays/Page_Connexion/input_(requis)_password’), ‘…’)

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Connexion/button_Se connecter’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Accueil/img_Consulter mes dossiers_profile-img img-rounded profile-img’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Liste des demandes/a_Mes dmarches’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Liste des dmarches/a_Reprendre’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Demande la MDPH/a_Modifier’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Demande la MDPH/span_Pays_input-group-addon dropdown-toggle’))

WebUI.click(findTestObject(‘Object Repository/test pays/Page_Demande la MDPH/a_ALGERIE’))

Seems ok, so we also need the selector of this object

and the html of the element “span_Pays_input-group-addon dropdown-toggle”