从下拉列表中选择一个选项的AutoIt脚本是什么? [英] What is the AutoIt script to select an option from the drop down list?

查看:1658
本文介绍了从下拉列表中选择一个选项的AutoIt脚本是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用AutoIt测试应用程序时,我无法从下拉列表中选择一个选项。

I am not able to select an option from a drop down list while testing an application using AutoIt.

尽管我可以使用发送({down} {down}),当列表中存在大量元素时,将难以选择该选项。而问题是发送({down} {down})命令正在发送文本,而不是选择文本。

Though I am able to send the option using Send("{down}{down}"), it will be difficult to select the option when a large number of elements are present in the list. And the problem is that the Send({down}{down}) command is sending the text, not selecting the text.

该选项必须通过光标进行选择,而不仅仅是被发送,并且应该很容易选择任何选项,不管有多少或者他们的订单是多少。

The option must be get selected by the cursor, not just get sent, and it should be easy to select any option, irrespective of how many there are or what their order is.

推荐答案

这是正常的..你可以使用这个..

This is working fine.. You can use this..

ControlCommand("Age Calculator", "", "[CLASS:ThunderRT6ComboBox; INSTANCE:2]","SelectString","November")

这篇关于从下拉列表中选择一个选项的AutoIt脚本是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆