I installed JDK6, NetBeans 6.5, Ruby one-click installer(1.8.6-27). When I clicked button, popup does not pop. I uninstalled ruby1.8.6-27 and re-installed ruby1.8.6-26.exe as administrator. Popup works fine for me now. 1. Uninstall ruby1.8.6-27 and re-install ruby1.8.6-26.exe 2. Open DOS command prompt, C:>gem update --system 3. C:>gem install watir 4. C:\Documents and Setting\administrator\>gem install watir 5. Open Internet Explore7 > Tools > Internet Option>Advanced Tab>Check Allow active content...
Good Luck. On Dec 18 2008, 4:34 pm, Michael Hwee <michael_h...@yahoo.com> wrote: > Ok, please let us know the outcome. > > > > ----- Original Message ---- > From: HAHAHA <windchillfigh...@gmail.com> > To:WatirGeneral <watir-general@googlegroups.com> > Sent: Thursday, December 18, 2008 12:50:34 PM > Subject: [wtr-general] Re: button.Click_No_Wait only highlights the > button,doesnotclick > > I have tried to set IE to default, but itnotwork. Now I am trying to > reinstall ruby andwatir. > > On Dec 18, 11:34 am, Michael Hwee <michael_h...@yahoo.com> wrote: > > First, go to your internet options and reset all your settings to default. > > > On vista with IE7, check off the Protected Mode. > > > Michael > > > ----- Original Message ---- > > From: HAHAHA <windchillfigh...@gmail.com> > > To:WatirGeneral <watir-general@googlegroups.com> > > Sent: Wednesday, December 17, 2008 12:49:43 PM > > Subject: [wtr-general] Re: button.Click_No_Wait only highlights the > > button,doesnotclick > > > I tried, even change the security of IE to Low, but the click_no_wait > > still cannot click the button. > > Now I just want to know what's the problem. Is it my IE's problem or > > Ruby's problem? > > > On Dec 17, 11:53 am, Michael Hwee <michael_h...@yahoo.com> wrote: > > > Come and think of that, have you ever got successful dismissing any > > > otherpopup? > > > > If I were you, I would be checking the browser configuration settings. > > > > Michael > > > > ----- Original Message ---- > > > From: Fish <hhfish...@hotmail.com> > > > To:WatirGeneral <watir-general@googlegroups.com> > > > Sent: Tuesday, December 16, 2008 5:21:33 PM > > > Subject: [wtr-general] Re: button.Click_No_Wait only highlights the > > > button,doesnotclick > > > > I use the ruby186-26,but still cannothandle thepopup...Just only > > > block at the commandline. > > >Doessomeone kindly do me a favor to provide code which can handle the > > > modaldialog?I very appreciate it. > > > I have tried below, but it doestn't work. > > > @ie.button(:value, "New").click_no_wait #popup a modaldialog, by the > > > method"showmodaldialog" > > > sleep(3) > > > hwnd = @ie.enabled_popup(10) > > > @ie1 = @ie.modal_dialog(:title, 'RFQ') > > > > The error like this: > > > c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb: > > > 59:in `wait > > > _until': Timed out after 10.032 seconds. > > > (Watir::Exception::TimeOutException) > > > > On Dec 16, 7:53 am, HAHAHA <windchillfigh...@gmail.com> wrote: > > > > I tried. The click_no_wait still cannot click the button. I think > > > > maybe it is really the configure problem. > > > > > I use XP SP3, ruby186-27, watir1.6.2. Do you think some earlier > > > > version will be better? I know some programs cannot run in current > > > > version, like rubyscript2exe.rb. > > > > > On Dec 16, 3:49 am, "pramod D" <petkar.pra...@gmail.com> wrote: > > > > > > Hi, > > > > > > I worked with your code and it is working fine, Only thing you need > > > > > to do is > > > > > introduce sleep(5) just before clicking the button. It will handle > > > > > thepop > > > > > up. > > > > > > Thanks, > > > > > Pramod > > > > > > On Mon, Dec 15, 2008 at 8:57 PM, HAHAHA <windchillfigh...@gmail.com> > > > > > wrote: > > > > > > > Thank you for your code. I test it. But Click_no_wait still cannot > > > > > > work. The result shows "There's nopopup. " > > > > > > Here is the code I used to test. I changed your code to get it. > > > > > > > require 'watir' > > > > > > require 'watir/ie'# > > > > > > > require 'watir\contrib\enabled_popup' #fafdfs > > > > > > require 'watir/dialog'#fafsfasd > > > > > > require 'watir/winClicker'#fasfsdfa > > > > > > require 'thread' > > > > > > def test_001_Login > > > > > > $batchCode="0" > > > > > > # attach a new browser window > > > > > > $ie =Watir::IE.attach(:url,"about:blank") > > > > > > > Watir::IE.attach_timeout =10 > > > > > > $ie.goto('http://www.w3schools.com/js/tryit_view.asp? > > > > > > filename=tryjs_alert<http://www.w3schools.com/js/tryit_view.asp?filename=tryjs_alert>') > > > > > > # This website only has an alert button, you > > > > > > can test using this website. > > > > > > > $ie.button(:index,1).click_no_wait > > > > > > begin > > > > > > hwnd = $ie.enabled_popup(5) > > > > > > if(hwnd) > > > > > > popup= WinClicker.new > > > > > > popup.makeWindowActive(hwnd) #Activate the > > > > > > window. > > > > > > popup.clickWindowsButton_hwnd(hwnd,"OK") > > > > > > #Click the OK button > > > > > > end > > > > > > rescue => e > > > > > > puts e > > > > > > puts "There is nopopup" > > > > > > end > > > > > > end > > > > > > > test_001_Login > > > > > > > Can you try it and see whether it can work in your computer? Thanks > > > > > > a > > > > > > lot. > > > > > > > On Dec 12,10:15 pm, "pramod D" <petkar.pra...@gmail.com> wrote: > > > > > > > I am posting a sample code which i am using in my script > > > > > > > > *def test_001_Login > > > > > > > $batchCode="0" > > > > > > > # attach a new browser window > > > > > > > $ie =Watir::IE.attach(:url,"about:blank") > > > > > > > Watir::IE.attach_timeout = 10.0 > > > > > > > ....... > > > > > > > ....... > > > > > > > > $ie.frame("mains").image(:index,1).click_no_wait > > > > > > > begin > > > > > > > hwnd = $ie.enabled_popup(5) > > > > > > > if(hwnd) > > > > > > > popup= WinClicker.new > > > > > > > popup.makeWindowActive(hwnd) #Activate the > > > > > > window. > > > > > > > popup.clickWindowsButton_hwnd(hwnd,"OK") > > > > > > > #Click > > > > > > the > > > > > > > OK button > > > > > > > end > > > > > > > rescue => e > > > > > > > puts e > > > > > > > puts "There is nopopup" > > > > > > > end > > > > > > > > def test_005_logout > > > > > > > > $ie.frame("header").image(:index,5).click > > > > > > > $ie.goto("about:blank") > > > > > > > $ie.minimize() > > > > > > > end > > > > > > > > Initially i will open an blank browser manually(This is only for > > > > > > > first > > > > > > time) > > > > > > > and then in Login method i am attaching it and continue my > > > > > > > script, in > > > > > > logout > > > > > > > method again i am going to direct browser for balnk page. So nxt > > > > > > > time > > > > > > when > > > > > > > you re-run the script, blank page is available and script runs > > > > > > > smoothly. > > > > > > If > > > > > > > i directly open browser from the script it willnotwork. > > > > > > > > I amnotsure what is the exact problem for time being i am using > > > > > > > this > > > > > > > approach. > > > > > > > * > > > > > > > On Fri, Dec 12, 2008 at 8:49 PM, Bret Pettichord > > > > > > > <b...@pettichord.com > > > > > > >wrote: > > > > > > > > > Your code is correct. There is something about your > > > > > > > > configuration that > > > > > > > > causes this to fail. > > > > > > > > > Bret > > > > > > > > > HAHAHA wrote: > > > > > > > > > I have tried, using this code: > > > > > > > > > > require 'watir' > > > > > > > > > > browser =Watir::IE.new > > > > > > > > > browser.goto('http://www.google.com') > > > > > > > > > browser2 =Watir::IE.attach(:title, /Google/) > > > > > > > > > browser2.text_field(:name, 'q').set('Watir') > > > > > > > > > browser2.button(:name, 'btnG').click_no_wait > > > > > > > > > > The click_no_wait still cannot run. Is the code right? > > > > > > > > > > On Dec 12, 9:58 am, "larryni...@gmail.com" > > > > > > > > > <larryni...@gmail.com> > > > > > > > > > wrote: > > > > > > > > > >> Pramod, could you show us an example of your code? > > > > > > > > > >> On Dec 11, 11:01 pm, "pramod D" <petkar.pra...@gmail.com> > > > > > > > > >> wrote: > > > > > > > > > >>> Hi Michael, > > > > > > > > > >>> Initially i also faced same problem when i use Click_no_wait > > > > > > control > > > > > > > > was > > > > > > > > >>> going but never clicked it, To come around this initially i > > > > > > > > >>> opened > > > > > > the > > > > > > > > IE > > > > > > > > >>> (IE7)with blank page and then, i will attach the browser at > > > > > > > > >>> the > > > > > > start > > > > > > > > of the > > > > > > > > >>> script and continue to execute my script as usual and worked > > > > > > correctly. > > > > > > > > For > > > > > > > > >>> time being you can fallow this turn around method. > > > > > > > > > >>> Thanks, > > > > > > > > >>> Pramod > > > > > > > > >>> On Fri, Dec 12, 2008 at 1:46 AM, Michael Hwee < > > > > > > michael_h...@yahoo.com > > > > > > > > >wrote: > > > > > > > > > >>>> That is disappointing. > > > > > > > > >>>> I believe that is something like OS and/or configuration > > > > > > > > >>>> issues, > > > > > > > > rather > > > > > > > > >>>> thanwatiritself. > > > > > > > > > >>>> Michael > > > > > > > > > >>>> ----- Original Message ---- > > > > > > > > >>>> From: "larryni...@gmail.com" <larryni...@gmail.com> > > > > > > > > >>>> To:WatirGeneral <watir-general@googlegroups.com> > > > > > > > > >>>> Sent: Thursday, December 11, 2008 12:00:00 PM > > > > > > > > >>>> Subject: [wtr-general] Re: button.Click_No_Wait only > > > > > > > > >>>> highlights > > > > > > the > > > > > > > > button, > > > > > > > > >>>>doesnotclick > > > > > > > > > >>>> Sorry, Michael, your code doesn't work either. It opens > > > > > > > > >>>> the page, > > > > > > > > >>>> highlights the button yellow, and then just sits there. > > > > > > > > >>>> Nopopup > > > > > > is > > > > > > > > >>>> ever launched because it doesn't actually click the > > > > > > > > >>>> button. Watir > > > > > > > > >>>> doesn't report any errors, but it never completes, either. > > > > > > > > >>>> If I > > > > > > > > >>>> change click_no_wait to click!, itdoeslaunch thepopup, but > > > > > > > > >>>> the > > > > > > > > >>>> handle_nextpopup command never executes - it's been > > > > > > > > >>>> sitting here > > > > > > for > > > > > > > > >>>> 90-120 seconds with thepopupopennotdoing anything. So, > > > > > > > > >>>> again, > > > > > > to > > > > > > > > >>>> summarize: click_no_wait is incapable of firing any > > > > > > > > >>>> events, but > > > > > > click! > > > > > > > > >>>> makes the > > ... > > read more »- 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---