Hi Can anyone here please tell me why the Timeout::timeout() will not work with .click if the it causes opening of a pop up.
Is there any other solution i can try with this? I tried SystemTimer and Terminator but they also didn't work. I looked into the code and there is a statement called "waitForIE"? is it because of this? Please anyone?? -- Thanks Pallavi. On Mon, Nov 2, 2009 at 5:16 PM, Pallavi Sharma <[email protected]>wrote: > Also click_no_wait doesn't work in the FW i am building. Somehow the > spawining of the ruby process just highlights the object but doesn't click. > > > On Mon, Nov 2, 2009 at 5:14 PM, Pallavi Sharma <[email protected]>wrote: > >> Why will .Click Fail? Can you tell me that please? >> >> -- >> Pallavi. >> >> >> On Mon, Nov 2, 2009 at 5:12 PM, Jarmo Pertman <[email protected]> wrote: >> >>> >>> Use #click_no_wait instead. >>> >>> Jarmo >>> >>> On Nov 2, 11:29 am, Pallavi Sharma <[email protected]> wrote: >>> > Hi >>> > >>> > I am trying a scenario, where the object click results in a pop up >>> window so >>> > it hangs until the popup is handled. >>> > >>> > so i am trying something like this: >>> > >>> > begin >>> > Timeout::timeout(30) >>> > { >>> > obj.click} >>> > >>> > rescue Exception => e >>> > message=e >>> > end >>> > >>> > So ideally this should time out the code in the block and come out and >>> go to >>> > exception. >>> > >>> > But until i handle the popup this doesnot come out from the click. >>> > >>> > Why is this happening? >>> > >>> > Will in this case System timer or Terminator work? >>> > >>> > Or nothing will work in here due to the way obj.click is implemented. >>> > >>> > Kindly help >>> > >>> > Regards >>> > -- >>> > Pallavi. >>> >>> >>> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
