Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Selenium处理自定义控件UI元素_Selenium_Selenium Webdriver_Ui Automation_Browser Automation - Fatal编程技术网

使用Selenium处理自定义控件UI元素

使用Selenium处理自定义控件UI元素,selenium,selenium-webdriver,ui-automation,browser-automation,Selenium,Selenium Webdriver,Ui Automation,Browser Automation,我的UI控件看起来像一个按钮,当我们单击它时,它将展开并充当多选下拉列表 有人能告诉我如何通过Selenium自动化此控制吗 编辑(从注释部分添加OP代码): 以下是我迄今为止所做的尝试: <button class="dropdown-btn btn btn-default pull-left " aria-expanded="false" aria-haspopup="true" ng-class="{'disabled':multiDictionaryCtrl.isDisabled

我的UI控件看起来像一个按钮,当我们单击它时,它将展开并充当多选下拉列表

有人能告诉我如何通过Selenium自动化此控制吗

编辑(从注释部分添加OP代码):

以下是我迄今为止所做的尝试:

<button class="dropdown-btn btn btn-default pull-left " aria-expanded="false" aria-haspopup="true" ng-class="{'disabled':multiDictionaryCtrl.isDisabled }"> <span class="pull-left ng-pristine ng-untouched ng-valid ng-binding" ng-model="multiDictionaryCtrl.selectedDictionaryItem">Select</span> <span class="fa fa-lg fa-angle-down pull-right"></span> <span class="fa pull-right"></span> </button>
选择
说明:


当您单击此按钮时,它将展开并充当下拉控件,我们可以在其中选择选项。

您为我们提供了零信息来帮助您。请通读选择当你点击他的按钮时,它将展开并作为一个下拉控件,我们可以在其中选择选项。在你的问题中有一个“编辑”按钮,允许你(或其他编辑)添加/删除内容。这次我为您添加了代码和注释。祝你好运。