Java Selenium WebDriver-用于定位输入的CSS选择器+;onclick
我有以下复选框:Java Selenium WebDriver-用于定位输入的CSS选择器+;onclick,java,selenium,selenium-webdriver,css-selectors,webdriver,Java,Selenium,Selenium Webdriver,Css Selectors,Webdriver,我有以下复选框: <input id="outerLabor102" name="ctl02$chkSelectLabor" onclick="chkChildLabor(this);chkIntervallineChild(this);" type="checkbox"> 感谢您检查我的问题。我不会依赖于onclick属性,但是,为了举例说明: input#outerLabor102[onclick^=chkChildLabor] 其中,^=是以符号开头的 input#oute
<input id="outerLabor102" name="ctl02$chkSelectLabor" onclick="chkChildLabor(this);chkIntervallineChild(this);" type="checkbox">
感谢您检查我的问题。我不会依赖于
onclick
属性,但是,为了举例说明:
input#outerLabor102[onclick^=chkChildLabor]
其中,^=
是以符号开头的
input#outerLabor102[onclick^=chkChildLabor]