I am trying to automate an application that has modal dialogs. My code below works for generic modal dialogs, but fails to identify the ones with primefaces modal dialog.
I am attaching my code below Any input is really appreciated. I am using ruby 192 and watir-classic 3.4.0 def test_modal @ie = Watir::Browser.new url="http://www.primefaces.org/showcase/ui/dialog.jsf" @ie.goto(url) @ie.button(:id, "modalDialogButton").click_no_wait modal = @ie.modal_dialog assert((modal.exists? == true), "Modal does not exist") end -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
