From kolbrich at icontact.com Mon Oct 18 16:23:41 2010 From: kolbrich at icontact.com (Kevin Olbrich) Date: Mon, 18 Oct 2010 16:23:41 -0400 (EDT) Subject: [Celerity-users] get width of an element In-Reply-To: <3671121.85.1287431928861.JavaMail.kolbrich@kolbrich-mac.local> Message-ID: <32720656.94.1287433419510.JavaMail.kolbrich@kolbrich-mac.local> Is it possible to determine the rendered (not the attribute) width of an element (a div, for example) using Celerity? Kevin Olbrich Operations Engineer - iContact Corp. kolbrich at icontact.com | ? 919.459.0889 | www.icontact.com Welcome to WOW - it starts here! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at iDIAcomputing.com Tue Oct 19 11:18:21 2010 From: lists at iDIAcomputing.com (George Dinwiddie) Date: Tue, 19 Oct 2010 11:18:21 -0400 Subject: [Celerity-users] get width of an element In-Reply-To: <32720656.94.1287433419510.JavaMail.kolbrich@kolbrich-mac.local> References: <32720656.94.1287433419510.JavaMail.kolbrich@kolbrich-mac.local> Message-ID: <4CBDB6BD.2090901@iDIAcomputing.com> Kevin, On 10/18/10 4:23 PM, Kevin Olbrich wrote: > Is it possible to determine the rendered (not the attribute) width of an > element (a div, for example) using Celerity? Celerity (and HtmlUnit) is a headless browser that doesn't render anything? Given that, what is the meaning of "rendered width?" - George -- * Come to Agile Tour DC, October 22. http://agiledc.org/ * Email me for a discount code. ---------------------------------------------------------------------- * George Dinwiddie * http://blog.gdinwiddie.com Software Development http://www.idiacomputing.com Consultant and Coach http://www.agilemaryland.org ---------------------------------------------------------------------- From jari.bakken at gmail.com Tue Oct 19 12:31:09 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Tue, 19 Oct 2010 18:31:09 +0200 Subject: [Celerity-users] get width of an element In-Reply-To: <32720656.94.1287433419510.JavaMail.kolbrich@kolbrich-mac.local> References: <3671121.85.1287431928861.JavaMail.kolbrich@kolbrich-mac.local> <32720656.94.1287433419510.JavaMail.kolbrich@kolbrich-mac.local> Message-ID: On Mon, Oct 18, 2010 at 10:23 PM, Kevin Olbrich wrote: > Is it possible to determine the rendered (not the attribute) width of an > element (a div, for example) using Celerity? > > There's no API in Celerity to do this, so you'll have to dig into HtmlUnit. WebDriver has HtmlUnitWebElement.getSize() defined here: http://code.google.com/p/selenium/source/browse/trunk/htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java#461 It appears to use the "computed style" of the element to get the dimensions. A similar approach should work well for Celerity as well. -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at hexagile.com Mon Oct 25 06:22:33 2010 From: peter at hexagile.com (Peter Szinek) Date: Mon, 25 Oct 2010 12:22:33 +0200 Subject: [Celerity-users] JavaScript not executed? Message-ID: Hi guys, Am I missing something or is this the 'normal' behavior: b = Celerity::Browser.new(:resynchronize => true, :user_agent => 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)') b.goto('http://www.vebra.com/details/property/map/483/21110198') b.xml .... b.xml returns the same string you would see if you open the page source of http://www.vebra.com/details/property/map/483/21110198 in a browser - ie the Google map and stuff is not inserted into the page. Do I need to turn on something extra to achieve this, or is this just a limitation of celerity? (with Firewatir it works without any problems). Cheers, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomasz2k at poczta.onet.pl Mon Oct 25 06:31:14 2010 From: tomasz2k at poczta.onet.pl (tomasz2k at poczta.onet.pl) Date: Mon, 25 Oct 2010 12:31:14 +0200 Subject: [Celerity-users] Where can I find Celerity changelog versions? Message-ID: <410961-5339116577cdb2bbbe9656909ec8c4f2@pkn5.m5r2.onet> I've been looking on Celerity webpage, Wiki, HISTORY file and mailing list archives but I cannot find Celerity version changelogs. Last changelog is for version 0.0.7 in HISTORY file. Does anyone know where can I find changelogs since 0.0.7 up to 0.8.2 version? Thank you in advance Tomasz Kalkosi?ski From jari.bakken at gmail.com Mon Oct 25 07:24:18 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Mon, 25 Oct 2010 16:54:18 +0530 Subject: [Celerity-users] JavaScript not executed? In-Reply-To: References: Message-ID: On Mon, Oct 25, 2010 at 3:52 PM, Peter Szinek wrote: > b.xml returns the same string you would see if you open the page source of > http://www.vebra.com/details/property/map/483/21110198 in a browser - ie the > Google map and stuff is not inserted into the page. > > Do I need to turn on something extra to achieve this, or is this just a > limitation of celerity? (with Firewatir it works without any problems). > That should work, if it doesn't it's likely a bug in HtmlUnit and should reported to them. Try running againg with full JS logging: Celerity::Browser.new(:javascript_exceptions => true, :log_level => :all) From jari.bakken at gmail.com Mon Oct 25 07:26:47 2010 From: jari.bakken at gmail.com (Jari Bakken) Date: Mon, 25 Oct 2010 16:56:47 +0530 Subject: [Celerity-users] Where can I find Celerity changelog versions? In-Reply-To: <410961-5339116577cdb2bbbe9656909ec8c4f2@pkn5.m5r2.onet> References: <410961-5339116577cdb2bbbe9656909ec8c4f2@pkn5.m5r2.onet> Message-ID: Oops, for some reason we forgot to maintain the HISTORY file. You'll have to look at the output of `git log` or use http://github.com/jarib/celerity/commits/master On Mon, Oct 25, 2010 at 4:01 PM, wrote: > I've been looking on Celerity webpage, Wiki, HISTORY file and mailing list archives but I cannot find Celerity version changelogs. Last changelog is for version 0.0.7 in HISTORY file. Does anyone know where can I find changelogs since 0.0.7 up to 0.8.2 version? > > Thank you in advance > Tomasz Kalkosi?ski > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > From peter at hexagile.com Mon Oct 25 10:38:30 2010 From: peter at hexagile.com (Peter Szinek) Date: Mon, 25 Oct 2010 16:38:30 +0200 Subject: [Celerity-users] JavaScript not executed? In-Reply-To: References: Message-ID: Bingo... thanks Jari. On Mon, Oct 25, 2010 at 1:24 PM, Jari Bakken wrote: > On Mon, Oct 25, 2010 at 3:52 PM, Peter Szinek wrote: > > b.xml returns the same string you would see if you open the page source > of > > http://www.vebra.com/details/property/map/483/21110198 in a browser - ie > the > > Google map and stuff is not inserted into the page. > > > > Do I need to turn on something extra to achieve this, or is this just a > > limitation of celerity? (with Firewatir it works without any problems). > > > > That should work, if it doesn't it's likely a bug in HtmlUnit and > should reported to them. Try running againg with full JS logging: > > > Celerity::Browser.new(:javascript_exceptions => true, :log_level => :all) > _______________________________________________ > Celerity-users mailing list > Celerity-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/celerity-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: