0

I need watij to click the location of sizeDropdown code Please help me go about doing this in java.

The HTML code:

<div class="size-quantity">
    <span class="sizeDropdown">
    </span>
</div>
Deduplicator
  • 44,692
  • 7
  • 66
  • 118
user2338241
  • 7
  • 1
  • 2

1 Answers1

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();
}
acdcjunior
  • 132,397
  • 37
  • 331
  • 304