简体   繁体   English

Telerik下拉列表

[英]Telerik Drop Down List

Here's the situation: 情况如下:

I am testing a form using Telerik Test Studio. 我正在使用Telerik Test Studio测试表单。

There are 3 drop downs (State, City, Building) and what you choose on the previous box decides what is in the next box. 有3个下拉菜单(州,城市,建筑物),您在前一个框中选择的内容将决定下一个框中的内容。 Before you choose what is in the drop down box number one, two and three are empty (no choices). 在下拉列表中选择第一,第二和第三为空之前(无选择)。 When you choose a State, it gives you options for cities, then once you choose a city, the building drop down gets populated with options. 当您选择州时,它会为您提供城市的选项,然后,在您选择城市后,建筑物下拉列表中会填充选项。

The problem is, when I am testing this with the drop downs, it chooses the state correctly, but it, for some reason, doesn't register that there is a state chosen, so the city drop down does not get populated. 问题是,当我使用下拉菜单进行测试时,它会正确选择州,但是由于某种原因,它不会注册选择的州,因此不会填充城市下拉菜单。 I slowed the process down while the test is running to try and see if it was something simple, but I saw myself that it DOES choose a state, so I tried to manually choose the city but there was nothing to populate the drop down options. 我在测试运行时尝试放慢速度,以查看它是否简单,但我发现自己确实选择了一个州,因此我尝试手动选择城市,但没有任何内容可填充下拉选项。 But, if I choose the state myself, then the cities populate. 但是,如果我自己选择州,那么城市就会人口众多。

Thank you for your help. 谢谢您的帮助。

M 中号

A possible problem I am seeing here is you might have missed setting up the ajax call timeout while selecting the 'State' dropdown. 我在这里看到的一个可能的问题是,您可能在选择“状态”下拉列表时错过了设置Ajax调用超时的操作。

Second option is to click anywhere else on the page after clicking on first dropdown and put some wait after clicking on page so that city values can be loaded after state is selected. 第二种选择是在单击第一个下拉菜单后单击页面上的任何其他位置,然后在单击页面后稍等片刻,以便在选择州后可以加载城市值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM