Hi Raveendran,

It is still returning "true" even though popup does not appear.
The below is the code:
if ouput == true
   puts "pop up"
   startClicker( "OK" )
   else
     puts "no popup"
$ie = Watir::IE.find(:url,/search.do/)
sleep(5)
$ie.frame(:name, "mainFrame").button(:id,"submitBtn").click
$ie.frame(:name, "mainFrame").button(:id,"addProducts").click

Thanks


On Oct 29, 11:55 am, Raveendran P <[email protected]> wrote:
> Hi Bindhu,
>
> Try  with this change
>
>  if ouput == true
>
>   else
>
> end
>
> 1. Replace = to ==.
> 2.Replace 'true' to true --> it returns true --> it is not a string
>
> Awaiting your reply
>
>
>
>
>
> On Thu, Oct 29, 2009 at 12:20 PM, Bindhu <[email protected]> wrote:
>
> > Hi Raveendran,
>
> > Thanks a lot for ur reply.
> > If popup does not appear also it is returning 'true'.
>
> >  if ouput ='true'
> >   puts "pop up"
> >   startClicker( "OK" )
> >  else
> >     puts "no popup"
> >     sleep(5)
> >     $ie = Watir::IE.find(:url,/search.do/)
> >     $ie = Watir::IE.find(:url,/secure/)
> >     $ie.frame(:name, "mainFrame").button(:id,"submitBtn").click
> > end
> > It is handling popup if appears but not executing the remaning code.
> > And if popup does not appear it is still waiting for it.
> > Am I using to your code correctly. Please let me know..
>
> > Thanks
>
> > On Oct 29, 10:50 am, Raveendran P <[email protected]> wrote:
> > > Hi Bindhu,
>
> > > Sorry for interrupt but may be this will help to solve ur problem.
>
> > > Try with this article --> http:// <goog_1256773908603>bit.ly/3TbxYr
> > > <http://bit.ly/3TbxYr> and
> > > Replace the window name "notepad' to your "pop-up window" name.
>
> > > Thanks
>
> > > On Thu, Oct 29, 2009 at 11:06 AM, Bindhu <[email protected]>
> > wrote:
>
> > > > Hi Zeljko,
>
> > > > I am really sorry that I have not clearly described what exactly I
> > > > want to do in my previous query.
> > > > There is popup with warning message will appear, if we try to create
> > > > the customer with the existing customer details. I wanted to click OK
> > > > to continue with remaning functionality.
> > > > I am using startClicker(). It is handling Popup when ever it appears
> > > > and executing the remaining code. But the problem here is if the popup
> > > > does not appear script is waiting for it appear and NOT proceeding
> > > > with remaining script.
>
> > > > Can it handle this situation by getting the property of the Popup? If
> > > > so how can get the property of it.
>
> > > > Thanks In Advance
>
> > > > On Oct 21, 1:10 pm, Željko Filipin <[email protected]>
> > > > wrote:
> > > > > On Wed, Oct 21, 2009 at 6:37 AM, Bindhu <[email protected]>
> > > > wrote:
> > > > > > I need to skip the pop up when ever it appear.
>
> > > > > And the problem is?
>
> > > > > Have you read this?
>
> > > > >http://wiki.openqa.org/display/WTR/Pop+Ups
>
> > > > > Željko
> > > > > --http://watirpodcast.com/
>
> > > --
> > > Regards,
> > > P.Raveendranhttp://raveendran.wordpress.com-Hide quoted text -
>
> > > - Show quoted text -
>
> --
> Regards,
> P.Raveendranhttp://raveendran.wordpress.com- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to