From: Raj pal Date: 2013-03-26T23:23:16+09:00 Subject: Re: question on watir OK, Thank you. consider this code, $browser.text_field(:id,'Date').set('raja') puts 'raja' popupMsg=modalDialog('Ok') hi look at the above code, I am setting the wrong string 'raja' in the date field, so it gives the pop up, Now i have written the pop up handler below "modelDialog", Now the problem is, as soon as pop comes next line is not executed, in this case puts 'raja' is not executed, that means control is not coming to the next line, so it is not reaching the function call of modalDialog('Ok'), How can i transfer the control to the next line while pop is visible? -- Posted via http://www.ruby-forum.com/.