如何解决从自动建议列表中选择一个值AJAX搜索硒python
我想从通过在AJAX搜索中输入值而生成的自动建议列表中选择一个值。以下是输入框的HTML
<input id="sys_display.incident.u_brand" onfocus="if (!this.ac) addLoadEvent(function() {var e =
gel('sys_display.incident.u_brand'); if (!e.ac) { var ac = new
AJAXReferenceCompleter(gel('sys_display.incident.u_brand'),'incident.u_brand','null','');
ac.setAdditionalValue('sysparm_ref_override','u_brand');}})" data-ac="AJAXReferenceCompleter" data-
dependent="null" data-ref-qual="" data-reference="u_brand" data-name="u_brand" islist="true" title=""
aria-label="Select target record" onkeydown="return acReferenceKeyDown(this,event);" onkeypress="return
acReferenceKeyPress(this,event)" onkeyup="return acReferenceKeyUp(this,event);refFlipImage(this,'incident.u_brand');" autocomplete="off" function="addGlideListReference('incident.u_brand')"
class="form-control" style="; " aria-controls="select_0incident.u_brand" aria-required="true"
role="combobox" aria-autocomplete="list" aria-owns="AC.incident.u_brand" aria-invalid="false">
我尝试按照本post中的建议使用调试器找到XPATH。但是我不确定是否做对了,因为我无法复制相同的步骤。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。