Search code examples
jqueryfirefoxwatirfirewatir

Trouble find elements with fireWatir on a JQuery created page


I am having a problem identifying a label on a jQuery generated page. This is the code of the page (as seen in firebug). alt text

I am trying to find it using this statement,

assert(browser.label(:id, "acms-ws-select-label").exists?)

Put it fails to find the label. Any ideas on what I am doing wrong?

Update: running the same script in IE with Watir, seems to find the element.


Solution

  • Try to use wait_until and see if that makes any difference.

    Watir::Waiter.wait_until {browser.label(:id, "acms-ws-select-label").exists?}