Katalon Studio Drop-down List Select


#1

Hi everyone, I’m writing with Katalon Studio. In this article, I would like to mention briefly about the solution I found for the problem that the items in the dropdown list cannot be captured by using Catalyst or Web Spy in Katalon Studio. Due to the different code techniques used in web projects, test tools such as Katalon Studio fail to capture some items. The most common problem with these items is in drop-down lists. In some cases, the selected value cannot be detected by Record Web i of Katalon Studio and the test is failing at this stage. For these fields, you can have Katalon Studio run successfully in these steps of the test with a few minor changes after the saving stage.

First of all, I want to explain the above example, https://select2.github.io/select2-bootstrap-theme/4.0.3.html drop-down in the list of items trying to select an item to save the test drop. Let’s select an item in the -down list and perform the save operation, then examine the test steps

As can be seen from the test steps below, after the registration step on the Katalon Studio, only the one marked on the image above is displayed. step was detected, 2 steps in this list even though the item is selected from the list was not caught at this stage.


In this case, you can follow these steps:

Click on the 1-Drop-Drown list.

2-Right click on the item to select. // right click to detect the item.

3-After this step, the path information is updated from the item’s Select Editor options.

Now, take these steps again for the test case where we received the error and examine the result.

When you run the test steps again on the page, when you right-click on the relevant item in the selection phase, the selected item is captured as you will see in step 4 of the katalon Studio project.

After first saving is completed, item 4 will be displayed as rightClick, you can update it as click.


After that, the Object Repository folder contains the corresponding test item and the Select Editor page opens.

On this page, the XPath information for the corresponding item is updated by replacing it with the more marked XPath information.


If you run the test again after this step, the related item in the list will be selected without error.

I hope it has been a useful post.

Emine Aktürk - https://emineakturkblog.wordpress.com/


Issue with drop down box
Dropdown List element selection using Data file
Dropdown selection issue for ng-select
#2

Can I suggest you change the category for this post to ‘Katalon Studio - Tips and Tricks
The Katalon Recorder category refers to to the browser plugin/addon :slightly_smiling_face:


#3

hello @Mark_Gibson
Thak you …