选择仅适用于<select>元素,而不适用于<option>

时间:2016-03-30 10:11:37

标签: css

&#13; &#13; &lt; div class =&#34; col-md-12 col-sm-12&#34;&gt;&#13;   &lt; div class =&#34; row search-table-setting&#34;&gt;&#13;     &lt; div class =&#34; col-md-1 col-sm-2&#34; /&GT;&#13;     &lt; div class =&#34; col-md-1 col-sm-2 pull-right&#34;&gt;&#13;       &lt; div class =&#34; form-select&#34;&gt;&#13;         &LT;标签&gt;&#13;           &lt; select class =&#34; selectpicker classReset ng-pristine ng-untouched ng-valid bs-select-hidden&#34; NG-变化=&#34; SetPageSize()&#34; NG-模型=&#34; recordPerPage&#34;&GT;&#13;             &lt; option value =&#34;&#34;&gt; 10 Per Per Page&lt; / option&gt;&#13;             &lt; option value =&#34; 20&#34;&gt;每页20个&lt; / option&gt;&#13;             &lt; option value =&#34; 30&#34;&gt; 30 Per Per Page&lt; / option&gt;&#13;             &lt; option value =&#34; 40&#34;&gt; 40 Per Page&lt; / option&gt;&#13;             &lt; option value =&#34; 50&#34;&gt; 50 Per Per Page&lt; / option&gt;&#13;           &LT; /选择&GT;&#13; &#13; &#13; 在上面的代码中,我试图使用python web-driver选择值,但得到错误   selenium.common.exceptions.UnexpectedTagNameException:消息:选择仅适用于元素,而不适用于元素 请帮帮我,我该如何解决这个问题。

1 个答案:

答案 0 :(得分:0)

ng-change =“SetPageSize()”ng-model =“recordPerPage”  删除它并尝试