2013-05-01 49 views

回答

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(); 
}