Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Selenium test case change for SelectItem dropdown list

$
0
0
Hi,

We observe a selenium test case behavior change for SelectItem's dropdown list when screenReader mode is turned on: there's an extra "," in the result when we call selenium.getText() to get the value of a record in the dropdown list.

This issue happens on SmartClient_v91p_2014-11-04_PowerEdition but works fine on SmartClient_v91p_2014-04-08_PowerEdition.

Please try the following standalone:

Steps to reproduce:

1. Click to show the drop down list.
2. Evaluate isc.AutoTest.getElement("//testRoot[]/child[Class=DynamicForm||index=0||length=1||classIndex=0||classLength=1]/item[title=Select%20Name||index=0||Class=SelectItem]/pickList/body/row[0]/col[fieldName=name||0]")
3. The result contains "textContent: "---Select---,"" which has an extra "," in the textContent. (We guess this might be the place which makes the selenium test case having an extra ",".)

Thanks,
Robin


Code:

isc.screenReader = true;

isc.DynamicForm.create({
        ID: "testForm",
        width: 500,
        fields: [{title: "Select Name", type :"select", valueMap: {"1":"A", "2":"B"}, allowEmptyValue: "true", emptyDisplayValue:"---Select---"}]
})


Viewing all articles
Browse latest Browse all 4756