Is the method modal_dialog supported by watir-webdriver? If not, is there another way for setting some text in a text field and clicking an ok button?
I've tried by putting
browser.modal_dialog.text_field(:name, "0.1.1.7.1.0.0.2.1.6.3.1").set(whatsNew)
but I keep getting the following error message:
NoMethodError: undefined method `modal_dialog' for #<Watir::Browser:0x1026fa560>
I am Using Watir-Webdriver and the browser is Firefox.
This is the eleme开发者_如何学Gont I am trying to access:
<textarea onblur="document.getElementById('whatsNewinthisVersionUpdateSpinnerId').show();LCAjaxContainer.submitAndUpdate('whatsNewinthisVersionUpdateContainerId');" name="0.1.1.7.1.0.0.2.1.6.3.1">-Bug fixes</textarea>
Here is a link to more HTML: http://cl.ly/2k0M0z182w2H2O3v122Q
Does this work?
browser.text_field(:name, "0.1.1.7.1.0.0.2.1.6.3.1").set(whatsNew)
精彩评论