开发者

Does watir-webDriver support modal_dialogs created via Lightbox?

开发者 https://www.devze.com 2023-03-27 14:03 出处:网络
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?

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)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号