@kazurayam
Hello,
I want to select a currency among but based on the external data file (excel file).
the program clicks on the list, but does not select the index i expected in
list of currencies :

Data :
Code:
Error :
Html :
@kazurayam
Hello,
I want to select a currency among but based on the external data file (excel file).
the program clicks on the list, but does not select the index i expected in
list of currencies :

Data :
Code:
Error :
Html :
@kazurayam
i added more informations to the issue.
thank you.
I expected to select the currency i have in my excel file (XAF).
Currency is a variable i created and linked it in my test case.
I understand you expect the variable Currency to have a String value XAF.
Then why you use WebUI.selectOptionByIndex keyword? You should read the doc carefully.
https://docs.katalon.com/katalon-studio/docs/webui-select-option-by-index.html
The 2nd argument for WebUI.selectOptionByIndex is expected to be index value such as 2 or 2,3. Passing XAF to this keyword does not make sense at all.
According to Java Naming Convention, a variable name should be
in mixed case with a lowercase first letter.
Therefore you should name it currency, rather than Currency.
even with lowercase first letter, not working.
Why do you use WebUI.selectOptionByIndex keyword with 2nd argument XAF? It doesn’t make sense.
I do not understand what you are asking to us.
If you make a search Katalon Data Driven, you will find plenty of articles that shows how to make a tests backed with Excel file. Have you tried any tutorial?
I used any test case with the data from the excel file and it worked fine.
just as the test gets to select the currency, the program clicks on the currency field
but cannot choose the currency that I provided in the data file.
just this step not working now.
Let me ask you again,
So, what are you asking to us?
my program can clicks on the currency field, but enable choose currency (what i planned in my data file).
is it clear now ?
Sorry, I can’t understand.
As long as your code calls WebUI.selectOptionByIndex keyword with XFA as the 2nd argument value, I believe that your code will never be successful.
Why not you use WebUI.selectOptionByValue keyword instead?