From jari.bakken at gmail.com Wed Oct 7 12:17:07 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 7 Oct 2009 18:17:07 +0200 Subject: [Celerity-users] ho to get 0.0.7.2 In-Reply-To: <3a8841390910061053k4f88d959w55bfb13856c597e0@mail.gmail.com> References: <3a8841390910061053k4f88d959w55bfb13856c597e0@mail.gmail.com> Message-ID: On Tue, Oct 6, 2009 at 7:53 PM, doridori Jo wrote: > hi folks, i updated gem, and installed according to > > $ gem sources -a http://gems.github.com > $ jruby -S gem install jarib-celerity > > > but how can i get 0.0.7.2 ? > GitHub has disabled gem building since the move to Rackspace for some reason. You can get 0.0.7.2 from gemcutter.org: From jari.bakken at gmail.com Wed Oct 7 17:42:25 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 7 Oct 2009 23:42:25 +0200 Subject: [Celerity-users] Celerity 0.7.3 Message-ID: Hello I've switched from Hoe to Jeweler for managing the Celerity gem. Since Jeweler only supports 3 numbers in the version string, I've removed a zero, which I guess was long overdue anyway. I'll also be pushing to Gemcutter on every version bump, so check out http://gemcutter.org/ if you haven't already and use that as your primary gem source to stay up to date. From jari.bakken at gmail.com Thu Oct 8 03:11:31 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Thu, 8 Oct 2009 09:11:31 +0200 Subject: [Celerity-users] java.lang.OutOfMemoryError: Java heap space & multithread question. In-Reply-To: <3a8841390910071838x25ba9d1bu62118f4dd78577db@mail.gmail.com> References: <3a8841390910051845w70170296yab016e8fa1f2d0b5@mail.gmail.com> <3a8841390910051907l7451dc16q8e471986745cdfc4@mail.gmail.com> <3a8841390910051914w7e633657v55c5d5719af48954@mail.gmail.com> <0627987D-8180-47F0-8B38-D18465997D07@gmail.com> <3a8841390910071838x25ba9d1bu62118f4dd78577db@mail.gmail.com> Message-ID: On Thu, Oct 8, 2009 at 3:38 AM, doridori Jo wrote: > >> browser.links.each do |link| >> ??????? newtab? = link.click_and_attach >> ????????? browser.wait >> ????????? puts newtab.url >> ????????? newtab.close >> end > This should be ok since you're calling Browser#close at the end of the loop. Please provide the full stacktrace for your OOM and the script that's causing it (i.e. test.rb from your previous stacktrace). From jari.bakken at gmail.com Fri Oct 9 03:38:50 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 9 Oct 2009 09:38:50 +0200 Subject: [Celerity-users] [Celerity]One block issue In-Reply-To: <200910090945464686747@cn.ufinity.com> References: <200910090945464686747@cn.ufinity.com> Message-ID: On Fri, Oct 9, 2009 at 3:45 AM, Ye Jian wrote: > Hi,All > I met a block issue with Celerity,the application be tested in my project > uses many Ajax and nested frames,i.e. > The page includes?two frames,topframe and mainframe,main frame includes four > div,and every div include one frame,such as following figure. > > topframe-->table(ajax call) > mainframe > ????????????? |--div1--frame1 > ????????????? |--div2--frame2 > ????????????? |--div3--frame3 > ????????????? |--div4--frame4 > > When?the?table with onclick event?in topframe be clicked,it will?send a ajax > in backend?and changed frame1's content in div1,when I used following code > to get the frame1's content,it is null. > > $ie.resynchronized?do > ??$ie.frame(:name,'topframe').table(:class=>'nav_tbl?unselectable',:index=>3).fire_event('onclick') > end > > puts > $ie.frame(:name,'mainframe').frame(:name,'iframe-documentsContainer').text > > Does?celerity support this situation?If not,How can I do to catch the > content of frame1? > It should, yes. If you can create a reproducible example (HTML/JS), I can take a look. Or even better, fork Celerity on GitHub and add a failing spec. > The celerity's version I used is 0.0.7. > Try the latest version (from http://gemcutter.org/). > Your reply will be higly appreciated! > > Thanks > -CamaelYe > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > From jari.bakken at gmail.com Mon Oct 12 09:22:14 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Mon, 12 Oct 2009 15:22:14 +0200 Subject: [Celerity-users] dealing with links when you don't know if they result is a pop-up. In-Reply-To: <8B22A9B0-18E0-41B6-A1B9-13722E8B6B5E@googlemail.com> References: <8B22A9B0-18E0-41B6-A1B9-13722E8B6B5E@googlemail.com> Message-ID: On Mon, Oct 12, 2009 at 3:00 PM, jason franklin-stokes wrote: > I am assuming that the FAQ assumes that the programmer knows which links > cause a popup. > In my case, I don't. So I some how need to detect if some link clicked has > caused a popup window to open. > What is the best way of dealing with this? I'm not aware of any good solution to this exact problem at the moment. On the site I work on, some survey popups that should be quietly ignored by my tests show up randomly, but only once for each user. I've worked that by adding the cookie the survey script looks for using Browser#add_cookie. > I seem to remember that firewatir had some browser method that return the > number on of the current window so it was possible to check that to see if > you were actually in a pop up window after clicking on a link. HtmlUnit might have something similar, but I haven't looked into it. > thanks for any advise... > jason. > > > > > > > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > From jasoninclass at googlemail.com Mon Oct 12 15:35:42 2009 From: jasoninclass at googlemail.com (jason franklin-stokes) Date: Mon, 12 Oct 2009 21:35:42 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. Message-ID: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> I have a very strange thing going on here. This throws and exception - i.e. it dies in goto ff = Celerity::Browser.new(:browser => :firefox3) ff.goto("http://www.spiegel.de") any ideas? or am I being exceptionally stupid. thanks Jason. From jari.bakken at gmail.com Mon Oct 12 16:59:26 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Mon, 12 Oct 2009 22:59:26 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> Message-ID: On Mon, Oct 12, 2009 at 9:35 PM, jason franklin-stokes wrote: > I have a very strange thing going on here. > > This throws and exception - i.e. it dies in goto > > ? ? ?ff = Celerity::Browser.new(:browser => :firefox3) > ? ? ?ff.goto("http://www.spiegel.de") > > any ideas? or am I being exceptionally stupid. I'm seeing an UnexpectedPageException. That means HtmlUnit returned an instance of com.gargoylesoftware.htmlunit.UnexpectedPage, which is described in the HtmlUnit docs as "A generic page that is returned whenever an unexpected content type is returned by the server." The content type of the response: >> ff.page.getWebResponse.getContentType => "image/gif" Also the url: >> ff.url => "http://www.spiegel.de/static/sys/pixel.gif" This is one for the HtmlUnit list. From chaolam at gmail.com Tue Oct 20 16:06:48 2009 From: chaolam at gmail.com (chao Lam) Date: Tue, 20 Oct 2009 13:06:48 -0700 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> Message-ID: <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> Hi Jari, Is there a work-around to this exception? I get the same problem with this url http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 I dumb work-around is to do begin b.goto " http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 " rescue Celerity::Exception::UnexpectedPageException b.goto " http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 " end Is there a better way? Thanks, chao On Mon, Oct 12, 2009 at 1:59 PM, Jari Bakken wrote: > On Mon, Oct 12, 2009 at 9:35 PM, jason franklin-stokes > wrote: > > I have a very strange thing going on here. > > > > This throws and exception - i.e. it dies in goto > > > > ff = Celerity::Browser.new(:browser => :firefox3) > > ff.goto("http://www.spiegel.de") > > > > any ideas? or am I being exceptionally stupid. > > I'm seeing an UnexpectedPageException. That means HtmlUnit returned an > instance of com.gargoylesoftware.htmlunit.UnexpectedPage, which is > described in the HtmlUnit docs as "A generic page that is returned > whenever an unexpected content type is returned by the server." > > The content type of the response: > > >> ff.page.getWebResponse.getContentType > => "image/gif" > > Also the url: > > >> ff.url > => "http://www.spiegel.de/static/sys/pixel.gif" > > This is one for the HtmlUnit list. > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorikick at gmail.com Tue Oct 20 16:37:44 2009 From: dorikick at gmail.com (doridori Jo) Date: Tue, 20 Oct 2009 13:37:44 -0700 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> Message-ID: <3a8841390910201337k7a8dd02etac5dfc51ae9edf9c@mail.gmail.com> do you have :resynchronize => :on and did you put browser.wait after the goto() ? On Tue, Oct 20, 2009 at 1:06 PM, chao Lam wrote: > Hi Jari, > > Is there a work-around to this exception? > > I get the same problem with this url > > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > > I dumb work-around is to do > begin > b.goto " > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > " > rescue Celerity::Exception::UnexpectedPageException > b.goto " > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > " > end > > Is there a better way? > > Thanks, > chao > > > > On Mon, Oct 12, 2009 at 1:59 PM, Jari Bakken wrote: > >> On Mon, Oct 12, 2009 at 9:35 PM, jason franklin-stokes >> wrote: >> > I have a very strange thing going on here. >> > >> > This throws and exception - i.e. it dies in goto >> > >> > ff = Celerity::Browser.new(:browser => :firefox3) >> > ff.goto("http://www.spiegel.de") >> > >> > any ideas? or am I being exceptionally stupid. >> >> I'm seeing an UnexpectedPageException. That means HtmlUnit returned an >> instance of com.gargoylesoftware.htmlunit.UnexpectedPage, which is >> described in the HtmlUnit docs as "A generic page that is returned >> whenever an unexpected content type is returned by the server." >> >> The content type of the response: >> >> >> ff.page.getWebResponse.getContentType >> => "image/gif" >> >> Also the url: >> >> >> ff.url >> => "http://www.spiegel.de/static/sys/pixel.gif" >> >> This is one for the HtmlUnit list. >> _______________________________________________ >> Celerity-users mailing list >> Celerity-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/celerity-users >> > > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaolam at gmail.com Tue Oct 20 17:33:34 2009 From: chaolam at gmail.com (chao Lam) Date: Tue, 20 Oct 2009 14:33:34 -0700 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <3a8841390910201337k7a8dd02etac5dfc51ae9edf9c@mail.gmail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> <3a8841390910201337k7a8dd02etac5dfc51ae9edf9c@mail.gmail.com> Message-ID: <786ddd160910201433t6c512bcbn71a4fbbe5fdfd795@mail.gmail.com> I do have :resynchronize=>true, but not browser.wait chao On Tue, Oct 20, 2009 at 1:37 PM, doridori Jo wrote: > do you have :resynchronize => :on and did you put browser.wait after the > goto() ? > > > On Tue, Oct 20, 2009 at 1:06 PM, chao Lam wrote: > >> Hi Jari, >> >> Is there a work-around to this exception? >> >> I get the same problem with this url >> >> http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 >> >> I dumb work-around is to do >> begin >> b.goto " >> http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 >> " >> rescue Celerity::Exception::UnexpectedPageException >> b.goto " >> http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 >> " >> end >> >> Is there a better way? >> >> Thanks, >> chao >> >> >> >> On Mon, Oct 12, 2009 at 1:59 PM, Jari Bakken wrote: >> >>> On Mon, Oct 12, 2009 at 9:35 PM, jason franklin-stokes >>> wrote: >>> > I have a very strange thing going on here. >>> > >>> > This throws and exception - i.e. it dies in goto >>> > >>> > ff = Celerity::Browser.new(:browser => :firefox3) >>> > ff.goto("http://www.spiegel.de") >>> > >>> > any ideas? or am I being exceptionally stupid. >>> >>> I'm seeing an UnexpectedPageException. That means HtmlUnit returned an >>> instance of com.gargoylesoftware.htmlunit.UnexpectedPage, which is >>> described in the HtmlUnit docs as "A generic page that is returned >>> whenever an unexpected content type is returned by the server." >>> >>> The content type of the response: >>> >>> >> ff.page.getWebResponse.getContentType >>> => "image/gif" >>> >>> Also the url: >>> >>> >> ff.url >>> => "http://www.spiegel.de/static/sys/pixel.gif" >>> >>> This is one for the HtmlUnit list. >>> _______________________________________________ >>> Celerity-users mailing list >>> Celerity-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/celerity-users >>> >> >> >> _______________________________________________ >> Celerity-users mailing list >> Celerity-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/celerity-users >> >> > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jari.bakken at gmail.com Wed Oct 21 03:01:30 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 21 Oct 2009 09:01:30 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> Message-ID: On Tue, Oct 20, 2009 at 10:06 PM, chao Lam wrote: > Hi Jari, > > Is there a work-around to this exception? > > I get the same problem with this url > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > > I dumb work-around is to do > begin > ? b.goto > "http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4" > rescue Celerity::Exception::UnexpectedPageException > ? b.goto > "http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4" > end > What version of Celerity? I think this was reported on the HtmlUnit list and fixed at least for spiegel.de. If you're still seeing the error with the latest HtmlUnit snapshot you should report it on their mailing list. If Celerity didn't raise when receiving an UnexpectedPage from HtmlUnit, the DOM would be unusable afterwards - because there is no DOM :) From jasoninclass at googlemail.com Wed Oct 21 05:04:07 2009 From: jasoninclass at googlemail.com (jason franklin-stokes) Date: Wed, 21 Oct 2009 11:04:07 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> Message-ID: <5A9AD6B1-CB64-4352-9A7E-81519A7BFF9A@googlemail.com> This is caused by htmlunit, I was to told to use the latest snapshot - which i have not done yet - so i cannot say if the problem still exists. BTW htmlunit gets a new snapshop relatively often - what is the best procedure to get that into celerity? Jason. On Oct 21, 2009, at 9:01 AM, Jari Bakken wrote: > would be unusabl From jari.bakken at gmail.com Wed Oct 21 06:12:08 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 21 Oct 2009 12:12:08 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <5A9AD6B1-CB64-4352-9A7E-81519A7BFF9A@googlemail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> <5A9AD6B1-CB64-4352-9A7E-81519A7BFF9A@googlemail.com> Message-ID: On Wed, Oct 21, 2009 at 11:04 AM, jason franklin-stokes wrote: > > > BTW htmlunit gets a new snapshop relatively often - what is the best > procedure to get that into celerity? > I update to the latest snapshot quite regularly. If you want to do it yourself, add the new jars to the lib/celerity/htmlunit directory (or try running `rake snapshot`). From dorikick at gmail.com Wed Oct 21 14:10:28 2009 From: dorikick at gmail.com (doridori Jo) Date: Wed, 21 Oct 2009 11:10:28 -0700 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> <5A9AD6B1-CB64-4352-9A7E-81519A7BFF9A@googlemail.com> Message-ID: <3a8841390910211110o6aab1c25ofadb51df01b78e23@mail.gmail.com> what are snapshots ? when we upgrade celerity does it automatically upgrade htmlunit ? On Wed, Oct 21, 2009 at 3:12 AM, Jari Bakken wrote: > On Wed, Oct 21, 2009 at 11:04 AM, jason franklin-stokes > wrote: > > > > > > BTW htmlunit gets a new snapshop relatively often - what is the best > > procedure to get that into celerity? > > > > I update to the latest snapshot quite regularly. If you want to do it > yourself, add the new jars to the lib/celerity/htmlunit directory (or > try running `rake snapshot`). > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jari.bakken at gmail.com Wed Oct 21 14:40:43 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 21 Oct 2009 20:40:43 +0200 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: <3a8841390910211110o6aab1c25ofadb51df01b78e23@mail.gmail.com> References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> <5A9AD6B1-CB64-4352-9A7E-81519A7BFF9A@googlemail.com> <3a8841390910211110o6aab1c25ofadb51df01b78e23@mail.gmail.com> Message-ID: On Wed, Oct 21, 2009 at 8:10 PM, doridori Jo wrote: > what are snapshots ? when we upgrade celerity does it automatically upgrade > htmlunit ? > A snapshot of the current, un-released trunk code of the project. Celerity includes all the HtmlUnit jars in the gem itself. Usually a version bump also includes either the latest snapshot (patch version bump) or the latest stable release (minor version bump) From chaolam at gmail.com Wed Oct 21 15:11:52 2009 From: chaolam at gmail.com (chao Lam) Date: Wed, 21 Oct 2009 12:11:52 -0700 Subject: [Celerity-users] very strange. goto("http://www.spiegel.de") throws exception. In-Reply-To: References: <85AA6FCC-48A6-49C0-8E3B-92F791BD2DB5@googlemail.com> <786ddd160910201306w4d97fa4bj96f4b13db0ca44a6@mail.gmail.com> Message-ID: <786ddd160910211211m1c1961a5h9225f9e3a54a68e5@mail.gmail.com> > > What version of Celerity? I think this was reported on the HtmlUnit > list and fixed at least for spiegel.de. If you're still seeing the > error with the latest HtmlUnit snapshot you should report it on their > mailing list. > I was testing this on Celerity 0.7.4 from gemcutter. Will try to figure out if I can test on latest snapshot. Thanks! chao On Wed, Oct 21, 2009 at 12:01 AM, Jari Bakken wrote: > On Tue, Oct 20, 2009 at 10:06 PM, chao Lam wrote: > > Hi Jari, > > > > Is there a work-around to this exception? > > > > I get the same problem with this url > > > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > > > > I dumb work-around is to do > > begin > > b.goto > > " > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > " > > rescue Celerity::Exception::UnexpectedPageException > > b.goto > > " > http://www.target.com/Mossimo-Black-Smocked-Purple-Paisley/dp/B002A3G29S/ref=sr_1_4 > " > > end > > > > What version of Celerity? I think this was reported on the HtmlUnit > list and fixed at least for spiegel.de. If you're still seeing the > error with the latest HtmlUnit snapshot you should report it on their > mailing list. > > If Celerity didn't raise when receiving an UnexpectedPage from > HtmlUnit, the DOM would be unusable afterwards - because there is no > DOM :) > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashley.moran at patchspace.co.uk Thu Oct 22 14:11:53 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Thu, 22 Oct 2009 19:11:53 +0100 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false Message-ID: Hi Just discovered a strange problem that appears on Celerity 0.7.4 but not 0.0.7.1 (the last version we were using). If you load Dojo on a page you visit directly, it works fine. If you load it by clicking on a link that takes you to a Dojo page, it throws an exception. BUT, if you set `:javascript_exceptions => false` instead of true, it works in both cases. This is the error you get: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "dojo" is not defined Anyone know what's going on, and why it's only recently started happening? (This was preventing us from upgrading Celerity until we isolated the problem.) Cheers Ashley -------------- next part -------------- A non-text attachment was scrubbed... Name: dojo-js-exceptions.zip Type: application/zip Size: 2960 bytes Desc: not available URL: -------------- next part -------------- -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From jari.bakken at gmail.com Fri Oct 23 00:25:08 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 23 Oct 2009 06:25:08 +0200 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: References: Message-ID: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> Probably an HtmlUnit problem, unfortunately. Den 22. okt. 2009 kl. 20.11 skrev Ashley Moran : > Hi > > Just discovered a strange problem that appears on Celerity 0.7.4 but > not 0.0.7.1 (the last version we were using). > > If you load Dojo on a page you visit directly, it works fine. If > you load it by clicking on a link that takes you to a Dojo page, it > throws an exception. BUT, if you set `:javascript_exceptions => > false` instead of true, it works in both cases. This is the error > you get: > > com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: > "dojo" is not defined > > Anyone know what's going on, and why it's only recently started > happening? (This was preventing us from upgrading Celerity until we > isolated the problem.) > > Cheers > Ashley > > > > > > -- > http://www.patchspace.co.uk/ > http://www.linkedin.com/in/ashleymoran > http://aviewfromafar.net/ > > > > > > > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users From ashley.moran at patchspace.co.uk Fri Oct 23 03:02:07 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Fri, 23 Oct 2009 08:02:07 +0100 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> Message-ID: <98B8BE18-4211-49E5-A849-F777EC66921D@patchspace.co.uk> On 23 Oct 2009, at 05:25, Jari Bakken wrote: > Probably an HtmlUnit problem, unfortunately. I'll file a ticket Cheers Ashley -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From manish at gslab.com Fri Oct 23 03:35:19 2009 From: manish at gslab.com (Manish Sapariya) Date: Fri, 23 Oct 2009 13:05:19 +0530 Subject: [Celerity-users] not able to render next page in ajax based wizard in drupal app Message-ID: <4AE15CB7.2030001@gslab.com> Hi All, I have recently started using Celerity. My goal is to write scripts which runs on Watir/FireWatir/Celerity. So far things were fine. However I am now stuck at a point where Celerity is not able to render a page, which watir and firewatir are. Few details: Application under test is Drupal based website. The page I am facing problem with is an Ajax based tabbed wizard. When I click on next button, the wizard does not load the next page. I tried to see whats going on with using swt-Celerity-viewer. I see nothing happening there when my script clicks on next link. I thought there is something wrong with Ajax calls, so I tried resynchronize, while creating browser as well as when I was clicking on the link which render the next tab. I think celerity is not able to fire certain events which loads my next page. I would appreciate any help to solve this problem. Please let me know if I need to send any html code or even my script code. Thanks and Regards, Manish From jari.bakken at gmail.com Fri Oct 23 04:25:24 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 23 Oct 2009 10:25:24 +0200 Subject: [Celerity-users] not able to render next page in ajax based wizard in drupal app In-Reply-To: <4AE15CB7.2030001@gslab.com> References: <4AE15CB7.2030001@gslab.com> Message-ID: <3DC5D506-5AFD-47C5-B9EE-736C5C341EBA@gmail.com> Did you try the other suggestions on the Ajax page on the wiki? What were the output/result? What version of Celerity? Does upgrading help? Does downgrading help, or did it use to work? You can also check out Browser#trace_javascript if you're on a fairly recent version. If you're able to create a small example of HTML/JS/Ruby that will reproduce the problem, I might be able to figure out what's happening. The Celerity viewers are not good for debugging AJAX stuff. I also recommend the Qt version over the SWT one. Den 23. okt. 2009 kl. 09.35 skrev Manish Sapariya : > Hi All, > > I have recently started using Celerity. My goal is > to write scripts which runs on Watir/FireWatir/Celerity. > > So far things were fine. However I am now stuck at a > point where Celerity is not able to render a page, > which watir and firewatir are. > > Few details: > Application under test is Drupal based website. The page > I am facing problem with is an Ajax based tabbed wizard. > When I click on next button, the wizard does not load the > next page. > > I tried to see whats going on with using swt-Celerity-viewer. > I see nothing happening there when my script clicks on next > link. > > I thought there is something wrong with Ajax calls, so I > tried resynchronize, while creating browser as well as when > I was clicking on the link which render the next tab. > > I think celerity is not able to fire certain events which > loads my next page. > > I would appreciate any help to solve this problem. > Please let me know if I need to send any html code or > even my script code. > > Thanks and Regards, > Manish > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users From ashley.moran at patchspace.co.uk Fri Oct 23 05:13:45 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Fri, 23 Oct 2009 10:13:45 +0100 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> Message-ID: <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> On 23 Oct 2009, at 05:25, Jari Bakken wrote: > Probably an HtmlUnit problem, unfortunately. Hi Jari Just filed a ticket on this one[1]. Do you know what versions of HtmlUnit went into Celerity 0.0.7.1 and 0.7.4? I can add that to the ticket and it may help them track it down. Cheers Ashley [1] https://sourceforge.net/tracker/?func=detail&aid=2884585&group_id=47038&atid=448266 -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From manish at gslab.com Fri Oct 23 05:18:46 2009 From: manish at gslab.com (Manish Sapariya) Date: Fri, 23 Oct 2009 14:48:46 +0530 Subject: [Celerity-users] not able to render next page in ajax based wizard in drupal app In-Reply-To: <3DC5D506-5AFD-47C5-B9EE-736C5C341EBA@gmail.com> References: <4AE15CB7.2030001@gslab.com> <3DC5D506-5AFD-47C5-B9EE-736C5C341EBA@gmail.com> Message-ID: <4AE174F6.7010903@gslab.com> Jari, Thanks for the quick response. I was talking to my dev and I figured that they are using jQuery to implement the functionality. After googling I figured that there were quite a few fixes in htmlunit for jQuery. How do I figure out what HTMLUnit unit is used by Celerity? Here are some of the answers: - I did try both the resychronize tricks. I did not try wait, becaus I inserted enough sleep to make sure the page will loaded. - My Celerity vesrion irb(main):005:0> p Celerity::VERSION "0.0.7.1" => nil irb(main):006:0> I am not sure what HTMLUnit version celerity is using. - I did not try any upgrade or downgrade, because this is the first time I am trying some real automation using celeriyt. I will check out Browser#trace_javascript. I am not sure if I will be able to re-create the problem my self. Will send out one if I can grab my dev to create some sample app which reproduces the problem. I will try out Qt version as well. Thanks for the help. Regards, Manish Jari Bakken wrote: > Did you try the other suggestions on the Ajax page on the wiki? What > were the output/result? > > What version of Celerity? Does upgrading help? Does downgrading help, or > did it use to work? > > You can also check out Browser#trace_javascript if you're on a fairly > recent version. > > If you're able to create a small example of HTML/JS/Ruby that will > reproduce the problem, I might be able to figure out what's happening. > > The Celerity viewers are not good for debugging AJAX stuff. I also > recommend the Qt version over the SWT one. > > Den 23. okt. 2009 kl. 09.35 skrev Manish Sapariya : > >> Hi All, >> >> I have recently started using Celerity. My goal is >> to write scripts which runs on Watir/FireWatir/Celerity. >> >> So far things were fine. However I am now stuck at a >> point where Celerity is not able to render a page, >> which watir and firewatir are. >> >> Few details: >> Application under test is Drupal based website. The page >> I am facing problem with is an Ajax based tabbed wizard. >> When I click on next button, the wizard does not load the >> next page. >> >> I tried to see whats going on with using swt-Celerity-viewer. >> I see nothing happening there when my script clicks on next >> link. >> >> I thought there is something wrong with Ajax calls, so I >> tried resynchronize, while creating browser as well as when >> I was clicking on the link which render the next tab. >> >> I think celerity is not able to fire certain events which >> loads my next page. >> >> I would appreciate any help to solve this problem. >> Please let me know if I need to send any html code or >> even my script code. >> >> Thanks and Regards, >> Manish >> _______________________________________________ >> Celerity-users mailing list >> Celerity-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/celerity-users > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > From jari.bakken at gmail.com Fri Oct 23 06:58:22 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 23 Oct 2009 12:58:22 +0200 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> Message-ID: On Fri, Oct 23, 2009 at 11:13 AM, Ashley Moran wrote: > > On 23 Oct 2009, at 05:25, Jari Bakken wrote: > >> Probably an HtmlUnit problem, unfortunately. > > > Hi Jari > > Just filed a ticket on this one[1]. ?Do you know what versions of HtmlUnit > went into Celerity 0.0.7.1 and 0.7.4? ?I can add that to the ticket and it > may help them track it down. > Unfortunately, it's a bit hard to say. I usually just do `rake snapshot` and make sure the specs run, then commit with a message that it's been updated to the latest snapshot - so the git logs are your best bet here. The HtmlUnit guys don't keep the exact revision around in the snapshots as far as I know. To find out the exact revision you would have to: 1. Go through the history in git and find out the date of those version bumps. 2. Check if the snapshots were updated in that commit, if not, find the previous commit that did. 3. Find out what revision HtmlUnit were at when the snapshot commit was made. To make it easier in the future, we could have the snapshot task add a timestamp to the jar's file name. Patches welcome :) From jari.bakken at gmail.com Fri Oct 23 07:00:44 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 23 Oct 2009 13:00:44 +0200 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> Message-ID: I just checked: 0.0.7.1 is using the official 2.6 release 0.7.4 is using whatever revision was in the snapshot at Fri Oct 9 22:26:36 2009 +0200 From ashley.moran at patchspace.co.uk Fri Oct 23 08:00:13 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Fri, 23 Oct 2009 13:00:13 +0100 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> Message-ID: <04492B6D-8633-43B4-94A1-43D8A78A87F8@patchspace.co.uk> On 23 Oct 2009, at 12:00, Jari Bakken wrote: > 0.0.7.1 is using the official 2.6 release > 0.7.4 is using whatever revision was in the snapshot at Fri Oct 9 > 22:26:36 2009 +0200 Thanks Jari. That's what I guessed based on a process like the one you described, but I wasn't 100% sure. I've fed this back to the HtmlUnit team. mguillem says he already has a hunch what the problem is. Cheers! Ashley -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From ashley.moran at patchspace.co.uk Fri Oct 23 08:04:51 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Fri, 23 Oct 2009 13:04:51 +0100 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> Message-ID: <825A4FEB-F8F2-44AB-8D53-15B2B3AC1002@patchspace.co.uk> On 23 Oct 2009, at 11:58, Jari Bakken wrote: > To make it easier in the future, we could have the snapshot task add a > timestamp to the jar's file name. Patches welcome :) Is that a hint? =) -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From jari.bakken at gmail.com Fri Oct 23 09:44:50 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 23 Oct 2009 15:44:50 +0200 Subject: [Celerity-users] Dojo won't load after clicking a link unless browser uses :javascript_exceptions => false In-Reply-To: <825A4FEB-F8F2-44AB-8D53-15B2B3AC1002@patchspace.co.uk> References: <799C2615-2518-4D6E-A17D-56CA96B71D50@gmail.com> <25182B91-A22F-46BC-854D-DA8CDB27F883@patchspace.co.uk> <825A4FEB-F8F2-44AB-8D53-15B2B3AC1002@patchspace.co.uk> Message-ID: On Fri, Oct 23, 2009 at 2:04 PM, Ashley Moran wrote: > > Is that a hint? =) > That is a hint :) From zeljko.filipin at wa-research.ch Tue Oct 27 07:56:49 2009 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Tue, 27 Oct 2009 12:56:49 +0100 Subject: [Celerity-users] Installing Celerity Message-ID: Hi, I am installing Celerity on Windows. I am reading instructions at celerity.rubyforge.org and I am so confused. I do not know anything about Java. Celerity home page says I should install JRuby, but when I get to jruby.org/download it offers me several options. My guess is that I need one of these, but I am not sure which one: JRuby 1.4.0RC2 Windows Executable JRuby 1.4.0RC2 Windows Executable+JRE When I tried to download Java at java.sun.com/javase/downloads/index.jsp, I got completely confused, because there are a lot of options. I have browsed Celerity mailing lists and forums and performed a few Google searches, but I did not find anything that would help me. I guess this is piece of cake for anybody that uses Java, but I got completely lost. Any help is appreciated. If you have documentation about installation, please point me there. I have looked but with no luck. ?eljko -- watir.com - community manager watirpodcast.com - host -------------- next part -------------- An HTML attachment was scrubbed... URL: From aidy.lewis at googlemail.com Tue Oct 27 10:18:52 2009 From: aidy.lewis at googlemail.com (aidy lewis) Date: Tue, 27 Oct 2009 14:18:52 +0000 Subject: [Celerity-users] Installing Celerity In-Reply-To: References: Message-ID: <7ac2300c0910270718x7a38cadfs8250075b25167f3e@mail.gmail.com> If you haven't got the JRE then choose JRuby 1.4.0RC2 Windows Executable+JRE Make sure JRuby is in your path and then jruby -S gem install celerity Aidy 2009/10/27 ?eljko Filipin : > Hi, > > I am installing Celerity on Windows. I am reading instructions at > celerity.rubyforge.org and I am so confused. > > I do not know anything about Java. > > Celerity home page says I should install JRuby, but when I get to > jruby.org/download it offers me several options. My guess is that I need one > of these, but I am not sure which one: > > JRuby 1.4.0RC2 Windows Executable > JRuby 1.4.0RC2 Windows Executable+JRE > > When I tried to download Java at java.sun.com/javase/downloads/index.jsp, I > got completely confused, because there are a lot of options. > > I have browsed Celerity mailing lists and forums and performed a few Google > searches, but I did not find anything that would help me. I guess this is > piece of cake for anybody that uses Java, but I got completely lost. > > Any help is appreciated. If you have documentation about installation, > please point me there. I have looked but with no luck. > > ?eljko > -- > watir.com - community manager > watirpodcast.com - host > > > > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > From zeljko.filipin at wa-research.ch Tue Oct 27 11:06:25 2009 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Tue, 27 Oct 2009 16:06:25 +0100 Subject: [Celerity-users] Installing Celerity In-Reply-To: <7ac2300c0910270718x7a38cadfs8250075b25167f3e@mail.gmail.com> References: <7ac2300c0910270718x7a38cadfs8250075b25167f3e@mail.gmail.com> Message-ID: On Tue, Oct 27, 2009 at 3:18 PM, aidy lewis wrote: > If you haven't got the JRE then choose JRuby 1.4.0RC2 Windows Executable+JRE > jruby -S gem install celerity Thanks Aidy, that did the trick. As I understood it, Celerity home page said I should separately install JRuby and Java, but I guess Java is bundled with JRuby then. All that JREs and stuff really confuses me. I do not know what is what. I had a problem with starting a browser after the installation, but I will report that in another thread if I do not find a solution on the tubes. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From jari.bakken at gmail.com Tue Oct 27 11:13:41 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Tue, 27 Oct 2009 16:13:41 +0100 Subject: [Celerity-users] Installing Celerity In-Reply-To: References: <7ac2300c0910270718x7a38cadfs8250075b25167f3e@mail.gmail.com> Message-ID: On Tue, Oct 27, 2009 at 4:06 PM, ?eljko Filipin wrote: > > I had a problem with starting a browser after the installation, but I will > report that in another thread if I do not find a solution on the tubes. > The latest JRuby (RC2) has a change in what errors are raised when trying to connect a socket to a non-listening host/port. I've just pushed a new version of Celerity that resolves the issue (0.7.5), it should be available from Gemcutter as we speak. Alternatively you can try to instantiate the browser using this option: Celerity::Browser.new(:viewer => false) From peter at hexagile.com Thu Oct 29 15:35:30 2009 From: peter at hexagile.com (Peter Szinek) Date: Thu, 29 Oct 2009 20:35:30 +0100 Subject: [Celerity-users] Waiting until page is fully loaded Message-ID: Hey guys, Maybe I didn't get the hang of celerity yet, but I can't seem to 'wait' until the AJAX request is properly loaded... e.g. on this page: https://nwl.taleo.net/careersection/2/joblist.ftl when I click 'Next', I can't seem to get the resulting page. However, this is just an example, but more generically, how do I wait until the AJAX request is injected into the page? I tried Ruby's sleep, browser.wait and whatever else that occurred to me to no avail. Am I missing something? Cheers, Peter From dorikick at gmail.com Thu Oct 29 16:37:12 2009 From: dorikick at gmail.com (doridori Jo) Date: Thu, 29 Oct 2009 13:37:12 -0700 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: References: Message-ID: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> you need to turn on :resynchronize => :on in your browser instance options. after you click 'next' immediately following that line add browser.wait. do a puts browser.xml to see the result. On Thu, Oct 29, 2009 at 12:35 PM, Peter Szinek wrote: > Hey guys, > > Maybe I didn't get the hang of celerity yet, but I can't seem to 'wait' > until the AJAX request is properly loaded... e.g. on this page: > > https://nwl.taleo.net/careersection/2/joblist.ftl > > when I click 'Next', I can't seem to get the resulting page. > > However, this is just an example, but more generically, how do I wait until > the AJAX request is injected into the page? I tried Ruby's sleep, > browser.wait and whatever else that occurred to me to no avail. Am I missing > something? > > Cheers, > Peter > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at hexagile.com Thu Oct 29 18:16:36 2009 From: peter at hexagile.com (Peter Szinek) Date: Thu, 29 Oct 2009 23:16:36 +0100 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> Message-ID: <769A462F-F67C-4DC0-9531-91000127BCDF@hexagile.com> Thanks - didn't help for some reason. I did everything as you described, but still getting the XML of the first page (well, only partially - I am correctly getting 'page 2 out of x' in the XML, but the records are the same). Any other idea I might try? On 2009.10.29., at 21:37, doridori Jo wrote: > you need to turn on :resynchronize => :on in your browser instance > options. > > after you click 'next' > immediately following that line add browser.wait. > > do a puts browser.xml to see the result. > > On Thu, Oct 29, 2009 at 12:35 PM, Peter Szinek > wrote: > Hey guys, > > Maybe I didn't get the hang of celerity yet, but I can't seem to > 'wait' until the AJAX request is properly loaded... e.g. on this page: > > https://nwl.taleo.net/careersection/2/joblist.ftl > > when I click 'Next', I can't seem to get the resulting page. > > However, this is just an example, but more generically, how do I > wait until the AJAX request is injected into the page? I tried > Ruby's sleep, browser.wait and whatever else that occurred to me to > no avail. Am I missing something? > > Cheers, > Peter > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashley.moran at patchspace.co.uk Thu Oct 29 18:53:54 2009 From: ashley.moran at patchspace.co.uk (Ashley Moran) Date: Thu, 29 Oct 2009 22:53:54 +0000 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> Message-ID: On 29 Oct 2009, at 20:37, doridori Jo wrote: > you need to turn on :resynchronize => :on in your browser instance > options. What is the overhead in using `:resynchronize => true`? Does it involve a significantly large runtime overhead to preclude setting it by default? Ashley -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ From dorikick at gmail.com Fri Oct 30 03:11:09 2009 From: dorikick at gmail.com (doridori Jo) Date: Fri, 30 Oct 2009 00:11:09 -0700 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> Message-ID: <3a8841390910300011r1c5cd211g254a706ca8f2d001@mail.gmail.com> paste full code... @Ashley, it appears to generate some overhead but im not sure if this is jruby or celerity. On Thu, Oct 29, 2009 at 3:53 PM, Ashley Moran wrote: > > On 29 Oct 2009, at 20:37, doridori Jo wrote: > > you need to turn on :resynchronize => :on in your browser instance >> options. >> > > > What is the overhead in using `:resynchronize => true`? Does it involve a > significantly large runtime overhead to preclude setting it by default? > > Ashley > > -- > http://www.patchspace.co.uk/ > http://www.linkedin.com/in/ashleymoran > http://aviewfromafar.net/ > > > > > > > > > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at hexagile.com Fri Oct 30 03:56:44 2009 From: peter at hexagile.com (Peter Szinek) Date: Fri, 30 Oct 2009 08:56:44 +0100 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: <3a8841390910300011r1c5cd211g254a706ca8f2d001@mail.gmail.com> References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> <3a8841390910300011r1c5cd211g254a706ca8f2d001@mail.gmail.com> Message-ID: <323E4662-4C30-4159-BC43-B0D34F6D8A8A@hexagile.com> On 2009.10.30., at 8:11, doridori Jo wrote: > paste full code... Thanks for your help in advance... not much remaining from my head after all this banging against the wall for the past few days. require "rubygems" require "celerity" @browser = Celerity::Browser.new(:resynchronize => true) @browser.goto('https://nwl.taleo.net/careersection/2/joblist.ftl') #Result: >>Jobs - Page 1 out of 10<< so we are on the first page puts @browser.element_by_xpath("//span[@class='pagerlabel']").text #first job on first page puts @browser.elements_by_xpath("// div[@class='iconcontentpanel']").map{|e|e.text.split("\n")}[0][0] @browser.element_by_xpath("//a[@title='Go to the next page']").click @browser.wait #Result: >>Jobs - Page 2 out of 10<< so we are on the second page... or not? WTF?! puts @browser.element_by_xpath("//span[@class='pagerlabel']").text #FAIL: first job on second page...NOT puts @browser.elements_by_xpath("// div[@class='iconcontentpanel']").map{|e|e.text.split("\n")}[0][0] So, as you can se, everything is cool initially, when we are on the first page. However, when clicking next, even though it looks like we arrived on the 2nd page (because of the element with the text "Jobs - Page 2 out of 10") the records are staying the same for some reason.... Cheers, Peter From jari.bakken at gmail.com Fri Oct 30 04:58:37 2009 From: jari.bakken at gmail.com (Jari Bakken) Date: Fri, 30 Oct 2009 09:58:37 +0100 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: <323E4662-4C30-4159-BC43-B0D34F6D8A8A@hexagile.com> References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> <3a8841390910300011r1c5cd211g254a706ca8f2d001@mail.gmail.com> <323E4662-4C30-4159-BC43-B0D34F6D8A8A@hexagile.com> Message-ID: On 30. okt. 2009, at 08.56, Peter Szinek wrote: > > On 2009.10.30., at 8:11, doridori Jo wrote: > >> paste full code... > > > @browser = Celerity::Browser.new(:resynchronize => true) If you add :log_level => :all, :javascript_exceptions => true you will see that a JS exception is being thrown after clicking the link. You should bring that to the HtmlUnit list. From peter at hexagile.com Fri Oct 30 05:33:58 2009 From: peter at hexagile.com (Peter Szinek) Date: Fri, 30 Oct 2009 02:33:58 -0700 Subject: [Celerity-users] Waiting until page is fully loaded In-Reply-To: References: <3a8841390910291337t695c7a3am3731ee0b2e37f306@mail.gmail.com> <3a8841390910300011r1c5cd211g254a706ca8f2d001@mail.gmail.com> <323E4662-4C30-4159-BC43-B0D34F6D8A8A@hexagile.com> Message-ID: <143B5FA8-F52B-491F-8CC9-768B6CA5B4CD@hexagile.com> Thanks Jari! Will do. On Oct 30, 2009, at 1:58 AM, Jari Bakken wrote: > > On 30. okt. 2009, at 08.56, Peter Szinek wrote: > >> >> On 2009.10.30., at 8:11, doridori Jo wrote: >> >>> paste full code... >> >> >> @browser = Celerity::Browser.new(:resynchronize => true) > > If you add > > :log_level => :all, :javascript_exceptions => true > > you will see that a JS exception is being thrown after clicking the > link. You should bring that to the HtmlUnit list. > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users