我需要点击sizeDropdown
代码的位置
请帮我在java中这样做。
HTML代码:
<div class="size-quantity">
<span class="sizeDropdown">
</span>
</div>
答案 0 :(得分:0)
public static void main(String[] args) {
WebSpec spec = new WebSpec().ie();
// http://jsfiddle.net/rnFm8/
spec.open("http://fiddle.jshell.net/rnFm8/show/");
// find <span> by innerText = "SPAN WAITING FOR CLICK"
// spec.find.span().with("SPAN WAITING FOR CLICK").click();
// or by CSS class using JQuery selector
spec.jquery(".sizeDropdown").click();
}