From alex.ikhelis at gmail.com Thu Oct 4 18:20:36 2012 From: alex.ikhelis at gmail.com (Aliaksandr Ikhelis) Date: Thu, 4 Oct 2012 19:20:36 +0100 Subject: [Wtr-development] [wtr-general] Watir-Classic 3.2.0 Released! In-Reply-To: References: Message-ID: Hi Jarmo, Thanks for the great news and hard work on this! We have faced an issue with SelectList Option #text() method, it returns an empty string for all options which are not currently selected, because they are... not visible. I am not sure whether it is per design because we are unable to find an option by text and just asses the content of options in a dropdown. It returns correct text value in watir-webdriver, where there is no check for visibility. More details follow below. Option class is located in input_elements.rb and its text is defined like this: *class Option < Element* *?* * attr_ole :label* *?* * ** def text* * l = label* * l.empty? ? super : l rescue ''* * end* *?* *end* Here - since label parameter is not used usually ? the super method will be called, which works like this: *# Return the innerText of the object or an empty string if the object is* *# not visible* *# Raise an ObjectNotFound exception if the object cannot be found* *def text* * assert_exists* * visible? ? ole_object.innerText.strip : ""* *end* If Options are not visible => an empty string will be returned in this case. We are thinking about a monkey-patch for Option#text like this in the meantime: *def text* * l = label* * l.empty? ? ole_object.innerText : l rescue ''* *end* Thank you, Aliaksandr Ikhelis On Thu, Sep 20, 2012 at 11:33 AM, ?eljko Filipin wrote: > On Wed, Sep 19, 2012 at 10:32 PM, Jarmo wrote: > > I'm happy to announce that Watir-Classic 3.2.0 has been released! > > Thanks Jarmo! > > Everybody, feel free to share the news: > > http://watir.com/2012/09/20/watir-classic-3-2-0-released/ > https://twitter.com/watir/status/248730057814708224 > https://www.facebook.com/watirproject/posts/496151940395969 > https://plus.google.com/u/0/100602917593825281282/posts/dGuj49tqMfk > http://www.linkedin.com/groups/I-m-happy-announce-that-88535.S.166152155 > > ?eljko > -- > filipin.eu > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Thu Oct 4 18:39:23 2012 From: jarmo.p at gmail.com (Jarmo) Date: Thu, 4 Oct 2012 21:39:23 +0300 Subject: [Wtr-development] [wtr-general] Watir-Classic 3.2.0 Released! In-Reply-To: References: Message-ID: Hi Aliaksandr, Yup, that seems to be like a bug "caused by" watir-webdriver logic of returning an empty text for invisible elements and as you pointed out then option is almost always an invisible element. Please open up an issue in github at https://github.com/watir/watir-classic/issues Thanks! Jarmo On Thu, Oct 4, 2012 at 9:20 PM, Aliaksandr Ikhelis wrote: > Hi Jarmo, > > Thanks for the great news and hard work on this! > > We have faced an issue with SelectList Option #text() method, it returns > an empty string for all options which are not currently selected, because > they are... not visible. I am not sure whether it is per design because we > are unable to find an option by text and just asses the content of options > in a dropdown. It returns correct text value in watir-webdriver, where > there is no check for visibility. More details follow below. > > > Option class is located in input_elements.rb and its text is defined like > this: > > *class Option < Element* > > *?* > > * attr_ole :label* > > *?* > > * ** def text* > > * l = label* > > * l.empty? ? super : l rescue ''* > > * end* > > *?* > > *end* > > Here - since label parameter is not used usually ? the super method will > be called, which works like this: > > *# Return the innerText of the object or an empty string if the object is* > > *# not visible* > > *# Raise an ObjectNotFound exception if the object cannot be found* > > *def text* > > * assert_exists* > > * visible? ? ole_object.innerText.strip : ""* > > *end* > > If Options are not visible => an empty string will be returned in this > case. > > We are thinking about a monkey-patch for Option#text like this in the > meantime: > > *def text* > > * l = label* > > * l.empty? ? ole_object.innerText : l rescue ''* > > *end* > > Thank you, > Aliaksandr Ikhelis > > > On Thu, Sep 20, 2012 at 11:33 AM, ?eljko Filipin wrote: > >> On Wed, Sep 19, 2012 at 10:32 PM, Jarmo wrote: >> > I'm happy to announce that Watir-Classic 3.2.0 has been released! >> >> Thanks Jarmo! >> >> Everybody, feel free to share the news: >> >> http://watir.com/2012/09/20/watir-classic-3-2-0-released/ >> https://twitter.com/watir/status/248730057814708224 >> https://www.facebook.com/watirproject/posts/496151940395969 >> https://plus.google.com/u/0/100602917593825281282/posts/dGuj49tqMfk >> http://www.linkedin.com/groups/I-m-happy-announce-that-88535.S.166152155 >> >> ?eljko >> -- >> filipin.eu >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aikhelis at expedia.com Thu Oct 4 18:50:45 2012 From: aikhelis at expedia.com (Aliaksandr Ikhelis) Date: Thu, 4 Oct 2012 19:50:45 +0100 Subject: [Wtr-development] [wtr-general] Watir-Classic 3.2.0 Released! In-Reply-To: Message-ID: Thanks, Jarmo, Done https://github.com/watir/watir-classic/issues/43 Thank you, Aleks From: Jarmo > Date: Thursday, 4 October 2012 19:39 To: Aliaksandr Ikhelis > Cc: Watir development >, "watir-general at googlegroups.com" >, Cucumber Automation Check-in Approvals > Subject: Re: [Wtr-development] [wtr-general] Watir-Classic 3.2.0 Released! Hi Aliaksandr, Yup, that seems to be like a bug "caused by" watir-webdriver logic of returning an empty text for invisible elements and as you pointed out then option is almost always an invisible element. Please open up an issue in github at https://github.com/watir/watir-classic/issues Thanks! Jarmo On Thu, Oct 4, 2012 at 9:20 PM, Aliaksandr Ikhelis > wrote: Hi Jarmo, Thanks for the great news and hard work on this! We have faced an issue with SelectList Option #text() method, it returns an empty string for all options which are not currently selected, because they are... not visible. I am not sure whether it is per design because we are unable to find an option by text and just asses the content of options in a dropdown. It returns correct text value in watir-webdriver, where there is no check for visibility. More details follow below. Option class is located in input_elements.rb and its text is defined like this: class Option < Element ? attr_ole :label ? def text l = label l.empty? ? super : l rescue '' end ? end Here - since label parameter is not used usually ? the super method will be called, which works like this: # Return the innerText of the object or an empty string if the object is # not visible # Raise an ObjectNotFound exception if the object cannot be found def text assert_exists visible? ? ole_object.innerText.strip : "" end If Options are not visible => an empty string will be returned in this case. We are thinking about a monkey-patch for Option#text like this in the meantime: def text l = label l.empty? ? ole_object.innerText : l rescue '' end Thank you, Aliaksandr Ikhelis On Thu, Sep 20, 2012 at 11:33 AM, ?eljko Filipin > wrote: On Wed, Sep 19, 2012 at 10:32 PM, Jarmo > wrote: > I'm happy to announce that Watir-Classic 3.2.0 has been released! Thanks Jarmo! Everybody, feel free to share the news: http://watir.com/2012/09/20/watir-classic-3-2-0-released/ https://twitter.com/watir/status/248730057814708224 https://www.facebook.com/watirproject/posts/496151940395969 https://plus.google.com/u/0/100602917593825281282/posts/dGuj49tqMfk http://www.linkedin.com/groups/I-m-happy-announce-that-88535.S.166152155 ?eljko -- filipin.eu _______________________________________________ Wtr-development mailing list Wtr-development at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development -------------- next part -------------- An HTML attachment was scrubbed... URL: From enrique.j.matta at gmail.com Thu Oct 4 19:10:05 2012 From: enrique.j.matta at gmail.com (enroxorz) Date: Thu, 4 Oct 2012 12:10:05 -0700 (PDT) Subject: [Wtr-development] Watir 4.0 Released! In-Reply-To: References: Message-ID: <029e6b08-3f9a-43ab-b89b-0ae7cec4e80a@googlegroups.com> Hey Jarmo, Is there a list of changes available for this release? --Enrique On Sunday, September 30, 2012 12:00:34 PM UTC-4, Jarmo Pertman wrote: > > Hello everyone! > > I'm happy to announce that Watir 4.0 has been released. > > Install this gem with the following command: > > gem install watir > > Then in your test file: > > require "watir" > browser = Watir::Browser.new > > Refer to the additional usage at the readme: > https://github.com/watir/watir/blob/master/README.md > > With Best Regards, > Jarmo Pertman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Thu Oct 4 20:18:18 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Thu, 4 Oct 2012 22:18:18 +0200 Subject: [Wtr-development] RubyMine? In-Reply-To: References: Message-ID: In the spirit of transparency, I wanted to let you know that Bret Pettichord is using the license. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Thu Oct 4 20:23:10 2012 From: jarmo.p at gmail.com (Jarmo) Date: Thu, 4 Oct 2012 23:23:10 +0300 Subject: [Wtr-development] Watir 4.0 Released! In-Reply-To: <029e6b08-3f9a-43ab-b89b-0ae7cec4e80a@googlegroups.com> References: <029e6b08-3f9a-43ab-b89b-0ae7cec4e80a@googlegroups.com> Message-ID: Hi! There's no changes file per se, but you can read its README at ( https://github.com/watir/watir/blob/master/README.md). It's functionality is all new. In short, difference between watir 4 when compared with previous versions is that it is now a fully functional watir meta gem, which installs all appropriate gem dependencies for you - on Windows watir-classic and watir-webdriver, on unix platforms only the latter. In addition it allows you to specify which driver to use loading the specified driver automatically. Do not confuse watir gem with watir-classic or watir-webdriver gem - it is just a gem which ties them all together. Similar approach is used for RSpec, where rspec gem is just a meta gem specifying all necessary dependencies for RSpec to work. Jarmo On Thu, Oct 4, 2012 at 10:10 PM, enroxorz wrote: > Hey Jarmo, > > Is there a list of changes available for this release? > > --Enrique > > > On Sunday, September 30, 2012 12:00:34 PM UTC-4, Jarmo Pertman wrote: >> >> Hello everyone! >> >> I'm happy to announce that Watir 4.0 has been released. >> >> Install this gem with the following command: >> >> gem install watir >> >> Then in your test file: >> >> require "watir" >> browser = Watir::Browser.new >> >> Refer to the additional usage at the readme: https://github.com/** >> watir/watir/blob/master/**README.md >> >> With Best Regards, >> Jarmo Pertman >> > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 5 22:23:06 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Sat, 6 Oct 2012 00:23:06 +0200 Subject: [Wtr-development] [wtr-general] Watir 4.0 Released! In-Reply-To: References: Message-ID: On Sun, Sep 30, 2012 at 5:59 PM, Jarmo wrote: > I'm happy to announce that Watir 4.0 has been released. I have just updated wikipedia article :) http://en.wikipedia.org/wiki/Watir I will create the blog post next week. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Fri Oct 5 22:26:29 2012 From: jarmo.p at gmail.com (Jarmo) Date: Sat, 6 Oct 2012 01:26:29 +0300 Subject: [Wtr-development] [wtr-general] Watir 4.0 Released! In-Reply-To: References: Message-ID: Awesome :) J. On Sat, Oct 6, 2012 at 1:23 AM, ?eljko Filipin wrote: > On Sun, Sep 30, 2012 at 5:59 PM, Jarmo wrote: > > I'm happy to announce that Watir 4.0 has been released. > > I have just updated wikipedia article :) > > http://en.wikipedia.org/wiki/Watir > > I will create the blog post next week. > > ?eljko > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 6 14:28:43 2012 From: notifications at github.com (=?utf-8?Q?=C5=BDeljko_Filipin?=) Date: Sat, 6 Oct 2012 07:28:43 -0700 Subject: [Wtr-development] [watir-bazaar] testing e-mail notification (#1) Message-ID: If this reaches wtr-development, then we are set up. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-bazaar/issues/1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Sat Oct 6 14:34:15 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Sat, 6 Oct 2012 16:34:15 +0200 Subject: [Wtr-development] [watir-bazaar] testing e-mail notification (#1) In-Reply-To: References: Message-ID: I think I was the one to set up jira at openqa to send notifications to this list. Since we no longer use jira for bug tracking (we use github now) I have set up github to send notifications here. This is a test ticket created for watir-bazaar project. If this reply reaches github, then everything is done. ?eljko On Sat, Oct 6, 2012 at 4:28 PM, ?eljko Filipin wrote: > If this reaches wtr-development, then we are set up. > > ? > Reply to this email directly or view it on GitHub. > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 6 14:38:46 2012 From: notifications at github.com (=?utf-8?Q?=C5=BDeljko_Filipin?=) Date: Sat, 6 Oct 2012 07:38:46 -0700 Subject: [Wtr-development] [watir-bazaar] testing e-mail notification (#1) In-Reply-To: References: Message-ID: On Sat, Oct 6, 2012 at 4:34 PM, wtr-development wrote: > If this reply reaches github, then everything is done. Reached: https://github.com/watir/watir-bazaar/issues/1 ?eljko --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-bazaar/issues/1#issuecomment-9198721 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Sat Oct 6 14:45:59 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Sat, 6 Oct 2012 16:45:59 +0200 Subject: [Wtr-development] [watir-bazaar] testing e-mail notification (#1) In-Reply-To: References: Message-ID: A quick test from gmail shows that if I reply to github notifications sent to wtr-development list with "reply to all", then my reply shows at github as created by wtr-development user. If I reply with "reply" then it shows there as sent from me: https://github.com/watir/watir-bazaar/issues/1 Keep that in mind. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From enrique.j.matta at gmail.com Mon Oct 8 12:41:35 2012 From: enrique.j.matta at gmail.com (enroxorz) Date: Mon, 8 Oct 2012 05:41:35 -0700 (PDT) Subject: [Wtr-development] Watir 4.0 Released! In-Reply-To: References: <029e6b08-3f9a-43ab-b89b-0ae7cec4e80a@googlegroups.com> Message-ID: <6176337c-606e-4170-9687-41e0ed5e91e5@googlegroups.com> Thanks Jarmo. Good to know :) On Thursday, October 4, 2012 4:23:45 PM UTC-4, Jarmo Pertman wrote: > > Hi! > > There's no changes file per se, but you can read its README at ( > https://github.com/watir/watir/blob/master/README.md). It's functionality > is all new. > > In short, difference between watir 4 when compared with previous versions > is that it is now a fully functional watir meta gem, which installs all > appropriate gem dependencies for you - on Windows watir-classic and > watir-webdriver, on unix platforms only the latter. In addition it allows > you to specify which driver to use loading the specified driver > automatically. > > Do not confuse watir gem with watir-classic or watir-webdriver gem - it is > just a gem which ties them all together. Similar approach is used for > RSpec, where rspec gem is just a meta gem specifying all necessary > dependencies for RSpec to work. > > Jarmo > > On Thu, Oct 4, 2012 at 10:10 PM, enroxorz > > wrote: > >> Hey Jarmo, >> >> Is there a list of changes available for this release? >> >> --Enrique >> >> >> On Sunday, September 30, 2012 12:00:34 PM UTC-4, Jarmo Pertman wrote: >>> >>> Hello everyone! >>> >>> I'm happy to announce that Watir 4.0 has been released. >>> >>> Install this gem with the following command: >>> >>> gem install watir >>> >>> Then in your test file: >>> >>> require "watir" >>> browser = Watir::Browser.new >>> >>> Refer to the additional usage at the readme: https://github.com/** >>> watir/watir/blob/master/**README.md >>> >>> With Best Regards, >>> Jarmo Pertman >>> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-dev... at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tryveg at gmail.com Mon Oct 8 15:52:10 2012 From: tryveg at gmail.com (Champ) Date: Mon, 8 Oct 2012 08:52:10 -0700 (PDT) Subject: [Wtr-development] Watir-Classic 3.2.0 Released! In-Reply-To: References: Message-ID: For some reason the monkey patch specified did not work. However, instead of options, use options.map(&:text) and this works correctly. Eg: $ie.select_list(:name, "group").options.map(&:text). Same applies to selected_options too. -Champ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Tue Oct 9 09:54:08 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Tue, 9 Oct 2012 11:54:08 +0200 Subject: [Wtr-development] How SQLite Is Tested Message-ID: I have just read this: http://www.sqlite.org/testing.html It is probably published a few years ago, but it was new to me. I would like to quote the summary: "SQLite is open source. This gives many people the idea that it is not well tested as commercial software and is perhaps unreliable. But that impression is false. SQLite has exhibited very high reliability in the field and a very low defect rate, especially considering how rapidly it is evolving. The quality of SQLite is achieved in part by careful code design and implementation. But extensive testing also plays a vital role in maintaining and improving the quality of SQLite. This document has summarized the testing procedures that every release of SQLite undergoes with the hopes of inspiring the reader to understand that SQLite is suitable for use in mission-critical applications." I think it would be great if Watir would have such article on watir.com. Jari, Jarmo: do the two of you have the time and the will to create something similar? Anybody else, if the two of them are not interested? It does not have to go into a lot of detail, maybe just covering the basics for start. ?eljko -- filipin.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From jari.bakken at gmail.com Wed Oct 10 13:45:57 2012 From: jari.bakken at gmail.com (Jari Bakken) Date: Wed, 10 Oct 2012 15:45:57 +0200 Subject: [Wtr-development] How SQLite Is Tested In-Reply-To: References: Message-ID: On Tue, Oct 9, 2012 at 11:54 AM, ?eljko Filipin wrote: > > Jari, Jarmo: do the two of you have the time and the will to create > something similar? Anybody else, if the two of them are not interested? It > does not have to go into a lot of detail, maybe just covering the basics > for start. > > This isn't something I'd be able to take on at the moment, sorry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Wed Oct 10 16:42:50 2012 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 10 Oct 2012 19:42:50 +0300 Subject: [Wtr-development] How SQLite Is Tested In-Reply-To: References: Message-ID: Me neither. As i understand you're trying to put together something in the terms of "open source is even better than commercial testing tool"? J. On Wed, Oct 10, 2012 at 4:45 PM, Jari Bakken wrote: > On Tue, Oct 9, 2012 at 11:54 AM, ?eljko Filipin wrote: > >> >> Jari, Jarmo: do the two of you have the time and the will to create >> something similar? Anybody else, if the two of them are not interested? It >> does not have to go into a lot of detail, maybe just covering the basics >> for start. >> >> > This isn't something I'd be able to take on at the moment, sorry. > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Wed Oct 10 16:44:51 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Wed, 10 Oct 2012 18:44:51 +0200 Subject: [Wtr-development] How SQLite Is Tested In-Reply-To: References: Message-ID: On Wed, Oct 10, 2012 at 6:42 PM, Jarmo wrote: > As i understand you're trying to put together something in the terms of "open source is even better than commercial testing tool"? No. I just wanted to document how much effort Watir is putting in testing the code. If it is better or worse than other tools I do not know. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Wed Oct 10 16:45:36 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Wed, 10 Oct 2012 18:45:36 +0200 Subject: [Wtr-development] How SQLite Is Tested In-Reply-To: References: Message-ID: Since both Jari and Jarmo do not have the time at the moment, I will try to write something when I find some time. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Thu Oct 11 12:35:29 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Thu, 11 Oct 2012 14:35:29 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: What do you think about adding page-object gem[1] to watir project? I have used it in a few projects for clients and I can not imagine using watir without page-object gem anymore. I have talked with Jeff Morgan, gem creator, and he said: "i am interested". If we vote "yes", nothing much would change. We would note somewhere on watir.com that page-object gem is part of the project, and we would add the gem to watir organization[2] at github. I think the license[3] is compatible. If we make it happen, I think that would be a step in the right direction. I think the time has come, watir project should really have a page object gem. What do you think? ?eljko -- [1] https://github.com/cheezy/page-object [2] https://github.com/watir [3] https://github.com/cheezy/page-object/blob/master/LICENSE -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Thu Oct 11 14:15:50 2012 From: jarmo.p at gmail.com (Jarmo) Date: Thu, 11 Oct 2012 17:15:50 +0300 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I have to admit that i haven't used Jeff's gem, but have looked at its source code some time ago. One thing that scares me with his gem is that it seems like a whole new and big framework built on top of watir/selenium having a quite complex API (in my opinion) and codebase. On the other hand i'm on the verge of releasing my own page-object gem, which i have been using in my own projects. Its main goals are really simple API (really easy learning curve) and supporting of all possible frameworks - watir-webdriver, watir-classic, selenium, capybara, whatever. And the total codebase is ~100 lines. That might sound that it has a lot of less functionality and maybe you're right, but i tend to like systems which are easier to understand. I'm not trying to say that this means everyone should prefer one to another and that complex systems are definitely less good, but i'm trying to say that instead of declaring something as a de facto standard we should rather give users a choice between multiple ones. Having said that i have also "revise watir readme" in my todo list where i would list all the relevant gems in its readme. Jarmo On Thu, Oct 11, 2012 at 3:35 PM, ?eljko Filipin wrote: > What do you think about adding page-object gem[1] to watir project? > > I have used it in a few projects for clients and I can not imagine using > watir without page-object gem anymore. > > I have talked with Jeff Morgan, gem creator, and he said: "i am interested > ". > > If we vote "yes", nothing much would change. We would note somewhere on > watir.com that page-object gem is part of the project, and we would add > the gem to watir organization[2] at github. I think the license[3] is > compatible. > > If we make it happen, I think that would be a step in the right direction. > I think the time has come, watir project should really have a page object > gem. > > What do you think? > > ?eljko > -- > [1] https://github.com/cheezy/page-object > [2] https://github.com/watir > [3] https://github.com/cheezy/page-object/blob/master/LICENSE > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Thu Oct 11 14:39:12 2012 From: jarmo.p at gmail.com (Jarmo) Date: Thu, 11 Oct 2012 17:39:12 +0300 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: One more thing. I don't find it appropriate of adding page-object under watir organization in GitHub. Why? Because page-object is not watir-specific gem, but it is watir and selenium specific. That's one of the reasons i'm not planning to add my own page object gem under watir organization either. I would vote for it only if Jeff would split that gem up into 3 separate gems - page-object, page-object-selenium and page-object-watir. page-object-watir could be located under watir organization, because it is watir-specific. Any thoughts on that distinction? Just my two cents. J. On Thu, Oct 11, 2012 at 5:15 PM, Jarmo wrote: > I have to admit that i haven't used Jeff's gem, but have looked at its > source code some time ago. One thing that scares me with his gem is that it > seems like a whole new and big framework built on top of watir/selenium > having a quite complex API (in my opinion) and codebase. On the other hand > i'm on the verge of releasing my own page-object gem, which i have been > using in my own projects. Its main goals are really simple API (really easy > learning curve) and supporting of all possible frameworks - > watir-webdriver, watir-classic, selenium, capybara, whatever. And the total > codebase is ~100 lines. That might sound that it has a lot of less > functionality and maybe you're right, but i tend to like systems which are > easier to understand. > > I'm not trying to say that this means everyone should prefer one to > another and that complex systems are definitely less good, but i'm trying > to say that instead of declaring something as a de facto standard we should > rather give users a choice between multiple ones. > > Having said that i have also "revise watir readme" in my todo list where i > would list all the relevant gems in its readme. > > Jarmo > > On Thu, Oct 11, 2012 at 3:35 PM, ?eljko Filipin wrote: > >> What do you think about adding page-object gem[1] to watir project? >> >> I have used it in a few projects for clients and I can not imagine using >> watir without page-object gem anymore. >> >> I have talked with Jeff Morgan, gem creator, and he said: "i am >> interested". >> >> If we vote "yes", nothing much would change. We would note somewhere on >> watir.com that page-object gem is part of the project, and we would add >> the gem to watir organization[2] at github. I think the license[3] is >> compatible. >> >> If we make it happen, I think that would be a step in the right >> direction. I think the time has come, watir project should really have a >> page object gem. >> >> What do you think? >> >> ?eljko >> -- >> [1] https://github.com/cheezy/page-object >> [2] https://github.com/watir >> [3] https://github.com/cheezy/page-object/blob/master/LICENSE >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From colinsdaddy at gmail.com Thu Oct 11 18:48:40 2012 From: colinsdaddy at gmail.com (Hugh McGowan) Date: Thu, 11 Oct 2012 13:48:40 -0500 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I think picking a page-object gem to support is fine but it's not clear to me that Jeff's gem is the right one. For example, the one we use is different in some very basic ways. Ours is agnostic to the implementation so we don't care what is driving the "page". We use it for watir, selenium, editing XML files, calling WIN32OLE methods for our own DLLs, etc. For us, it's just an abstraction for grouping getters and setters and keeping the implementation separated from the usage of that implementation. Maybe this is a good topic to address in the Watir conference next year - we can have a page-object smackdown! Hugh On Thu, Oct 11, 2012 at 9:39 AM, Jarmo wrote: > One more thing. I don't find it appropriate of adding page-object under > watir organization in GitHub. Why? Because page-object is not > watir-specific gem, but it is watir and selenium specific. That's one of > the reasons i'm not planning to add my own page object gem under watir > organization either. I would vote for it only if Jeff would split that gem > up into 3 separate gems - page-object, page-object-selenium and > page-object-watir. page-object-watir could be located under watir > organization, because it is watir-specific. Any thoughts on that > distinction? > > Just my two cents. > > J. > > > On Thu, Oct 11, 2012 at 5:15 PM, Jarmo wrote: > >> I have to admit that i haven't used Jeff's gem, but have looked at its >> source code some time ago. One thing that scares me with his gem is that it >> seems like a whole new and big framework built on top of watir/selenium >> having a quite complex API (in my opinion) and codebase. On the other hand >> i'm on the verge of releasing my own page-object gem, which i have been >> using in my own projects. Its main goals are really simple API (really easy >> learning curve) and supporting of all possible frameworks - >> watir-webdriver, watir-classic, selenium, capybara, whatever. And the total >> codebase is ~100 lines. That might sound that it has a lot of less >> functionality and maybe you're right, but i tend to like systems which are >> easier to understand. >> >> I'm not trying to say that this means everyone should prefer one to >> another and that complex systems are definitely less good, but i'm trying >> to say that instead of declaring something as a de facto standard we should >> rather give users a choice between multiple ones. >> >> Having said that i have also "revise watir readme" in my todo list where >> i would list all the relevant gems in its readme. >> >> Jarmo >> >> On Thu, Oct 11, 2012 at 3:35 PM, ?eljko Filipin > > wrote: >> >>> What do you think about adding page-object gem[1] to watir project? >>> >>> I have used it in a few projects for clients and I can not imagine using >>> watir without page-object gem anymore. >>> >>> I have talked with Jeff Morgan, gem creator, and he said: "i am >>> interested". >>> >>> If we vote "yes", nothing much would change. We would note somewhere on >>> watir.com that page-object gem is part of the project, and we would add >>> the gem to watir organization[2] at github. I think the license[3] is >>> compatible. >>> >>> If we make it happen, I think that would be a step in the right >>> direction. I think the time has come, watir project should really have a >>> page object gem. >>> >>> What do you think? >>> >>> ?eljko >>> -- >>> [1] https://github.com/cheezy/page-object >>> [2] https://github.com/watir >>> [3] https://github.com/cheezy/page-object/blob/master/LICENSE >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sqapro at gmail.com Thu Oct 11 23:01:27 2012 From: sqapro at gmail.com (Charles S van der Linden) Date: Thu, 11 Oct 2012 16:01:27 -0700 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I'm in agreement here.. it might be better to include a few references to various options. We're largely rolling our own page objects in the project I'm on right now, based off some stuff from the Watirmelon blog. For the same reason as others regarding the pageobject gem being just a bit overkill.. This might be better handled via documentation rather than just including another gem into the mix by default. On Thu, Oct 11, 2012 at 11:48 AM, Hugh McGowan wrote: > I think picking a page-object gem to support is fine but it's not clear to > me that Jeff's gem is the right one. > > For example, the one we use is different in some very basic ways. Ours is > agnostic to the implementation so we don't care what is driving the "page". > We use it for watir, selenium, editing XML files, calling WIN32OLE methods > for our own DLLs, etc. For us, it's just an abstraction for grouping getters > and setters and keeping the implementation separated from the usage of that > implementation. > > Maybe this is a good topic to address in the Watir conference next year - we > can have a page-object smackdown! > > Hugh > > > > > On Thu, Oct 11, 2012 at 9:39 AM, Jarmo wrote: >> >> One more thing. I don't find it appropriate of adding page-object under >> watir organization in GitHub. Why? Because page-object is not watir-specific >> gem, but it is watir and selenium specific. That's one of the reasons i'm >> not planning to add my own page object gem under watir organization either. >> I would vote for it only if Jeff would split that gem up into 3 separate >> gems - page-object, page-object-selenium and page-object-watir. >> page-object-watir could be located under watir organization, because it is >> watir-specific. Any thoughts on that distinction? >> >> Just my two cents. >> >> J. >> >> >> On Thu, Oct 11, 2012 at 5:15 PM, Jarmo wrote: >>> >>> I have to admit that i haven't used Jeff's gem, but have looked at its >>> source code some time ago. One thing that scares me with his gem is that it >>> seems like a whole new and big framework built on top of watir/selenium >>> having a quite complex API (in my opinion) and codebase. On the other hand >>> i'm on the verge of releasing my own page-object gem, which i have been >>> using in my own projects. Its main goals are really simple API (really easy >>> learning curve) and supporting of all possible frameworks - watir-webdriver, >>> watir-classic, selenium, capybara, whatever. And the total codebase is ~100 >>> lines. That might sound that it has a lot of less functionality and maybe >>> you're right, but i tend to like systems which are easier to understand. >>> >>> I'm not trying to say that this means everyone should prefer one to >>> another and that complex systems are definitely less good, but i'm trying to >>> say that instead of declaring something as a de facto standard we should >>> rather give users a choice between multiple ones. >>> >>> Having said that i have also "revise watir readme" in my todo list where >>> i would list all the relevant gems in its readme. >>> >>> Jarmo >>> >>> On Thu, Oct 11, 2012 at 3:35 PM, ?eljko Filipin >>> wrote: >>>> >>>> What do you think about adding page-object gem[1] to watir project? >>>> >>>> I have used it in a few projects for clients and I can not imagine using >>>> watir without page-object gem anymore. >>>> >>>> I have talked with Jeff Morgan, gem creator, and he said: "i am >>>> interested". >>>> >>>> If we vote "yes", nothing much would change. We would note somewhere on >>>> watir.com that page-object gem is part of the project, and we would add the >>>> gem to watir organization[2] at github. I think the license[3] is >>>> compatible. >>>> >>>> If we make it happen, I think that would be a step in the right >>>> direction. I think the time has come, watir project should really have a >>>> page object gem. >>>> >>>> What do you think? >>>> >>>> ?eljko >>>> -- >>>> [1] https://github.com/cheezy/page-object >>>> [2] https://github.com/watir >>>> [3] https://github.com/cheezy/page-object/blob/master/LICENSE >>>> >>>> _______________________________________________ >>>> Wtr-development mailing list >>>> Wtr-development at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development From zeljko.filipin at gmail.com Fri Oct 12 08:15:36 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 10:15:36 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Thu, Oct 11, 2012 at 4:15 PM, Jarmo wrote: > On the other hand i'm on the verge of releasing my own page-object gem, which i have been using in my own projects. Its main goals are really simple API (really easy learning curve) and supporting of all possible frameworks - watir-webdriver, watir-classic, selenium, capybara, whatever. And the total codebase is ~100 lines. That might sound that it has a lot of less functionality and maybe you're right, but i tend to like systems which are easier to understand. > I'm not trying to say that this means everyone should prefer one to another and that complex systems are definitely less good, but i'm trying to say that instead of declaring something as a de facto standard we should rather give users a choice between multiple ones. I am open to adding more than one page object gem to watir project. If that happens we should pick a default. I think the time is come for watir project to become more that just browser driver and offer the users a complete test automation solution. After all, watir stands for "web app testing in ruby", not for "browser driver". ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 08:20:03 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 10:20:03 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Thu, Oct 11, 2012 at 4:39 PM, Jarmo wrote: > One more thing. I don't find it appropriate of adding page-object under watir organization in GitHub. Why? Because page-object is not watir-specific gem, but it is watir and selenium specific. That's one of the reasons i'm not planning to add my own page object gem under watir organization either. I would vote for it only if Jeff would split that gem up into 3 separate gems - page-object, page-object-selenium and page-object-watir. page-object-watir could be located under watir organization, because it is watir-specific. Any thoughts on that distinction? -1 I have read Jeff's book[1] and as far as I can see, page-object gem is driver agnostic, like you said your gem would be. I think having a page object gem in watir project would do more good than the confusion that it works with another driver(s) would do harm. ?eljko -- [1] https://leanpub.com/cucumber_and_cheese -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 08:26:31 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 10:26:31 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Thu, Oct 11, 2012 at 8:48 PM, Hugh McGowan wrote: > I think picking a page-object gem to support is fine but it's not clear to me that Jeff's gem is the right one. I know that at Blackbaud/Convio you use watirmark[1]. If there was watirmark workshop this year at Austin maybe I would now be recommending it. :) > For example, the one we use is different in some very basic ways. Ours is agnostic to the implementation so we don't care what is driving the "page". We use it for watir, selenium, editing XML files, calling WIN32OLE methods for our own DLLs, etc. For us, it's just an abstraction for grouping getters and setters and keeping the implementation separated from the usage of that implementation. The only thing that I do not like about page-object gem is that it adds it's own API on top of the driver. Examples[2]: browser.button(:id => 'an_id') # watir button(:your_name, :id => 'an_id') # page-object keyword :your_name {browser.button(:id => 'an_id')} #watirmark I really prefer how watirmark does it. But maybe it could be added to page-object gem. > Maybe this is a good topic to address in the Watir conference next year - we can have a page-object smackdown! +1 I think this is the next big discussion that we need to have. ?eljko -- [1] https://github.com/convio/watirmark [2] https://github.com/cheezy/page-object/issues/102#issuecomment-6331222 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 08:37:11 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 10:37:11 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Fri, Oct 12, 2012 at 1:01 AM, Charles S van der Linden wrote: > it might be better to include a few > references to various options. I am open to that. If that happens, we should "just" agree on defaults. We should offer a bundle of tools to new users, and leave them the choice of changing some of the options later. > We're largely rolling our own page > objects in the project I'm on right now, based off some stuff from the > Watirmelon blog. I think the time has come for the project to have a page object gem. The time when everybody had to develop a browser driver and page object implementation should be behind us. > For the same reason as others regarding the > pageobject gem being just a bit overkill.. For a while I had my own page object implementation. When I saw the features of the page-object gem I have realized that I need most of them. I do not think it is overkill, even for smaller projects. I was a freelancer for the last year or so. I had smaller and bigger projects. I have some experience with not using page object pattern in a few projects, with using my own implementation in a few projects, and with using page-object gem in a few projects. I think the fact that I converted all projects to use page-object gem at the end speaks for itself. > This might be better handled via documentation rather than just > including another gem into the mix by default. I am not saying that "gem install watir" should install page-object gem. Although, I would vote for that. I do not see any harm in automatically installing a page object gem when installing watir, when we decide which gem are we going to support. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 10:35:13 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 12:35:13 +0200 Subject: [Wtr-development] Watir article on English Wikipedia In-Reply-To: References: Message-ID: I know a lot of you do not monitor watir-general, so am I forwarding this here too. ---------- Forwarded message ---------- From: ?eljko Filipin Date: Fri, Oct 12, 2012 at 12:34 PM Subject: Watir article on English Wikipedia To: watir I am updating Watir article on English Wikipedia[1] and I need some help. If you open the page[1] you will see a warning: "This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (September 2010)". The warning links to a few pages[2][3][4] with instructions. Since the instructions are pretty verbose, I will try to sum it up, as I understand it: you should be able to point to "reliable source(s)" for every claim that you make on Wikipedia. For example, for the first sentence of the article[5] I have added three sources[6]. Reliable sources are books (not self published, if possible), journal articles, newspaper articles, webpages... In short, I need "information (...) from a reliable source" for all other sentences of the article. :) So, if you know a book, article, webpage (...) that mentions Watir, please let me know. Thanks, ?eljko -- [1] http://en.wikipedia.org/wiki/Watir [2] http://en.wikipedia.org/wiki/Wikipedia:Citing_sources [3] http://en.wikipedia.org/wiki/Wikipedia:Verifiability [4] http://en.wikipedia.org/wiki/Help:Introduction_to_referencing/1 [5] Watir (Web Application Testing in Ruby, pronounced water), is an open-source (BSD) family of Ruby libraries for automating web browsers. [6] http://en.wikipedia.org/wiki/Watir#References -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 15:13:04 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 17:13:04 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Thu, Oct 11, 2012 at 2:35 PM, ?eljko Filipin wrote: > What do you think about adding page-object gem[1] to watir project? I almost forgot to mention it. One of the reasons I would recommend page-object gem before other similar gems is that there is a book[1] that shows how to use it. ?eljko -- [1] https://leanpub.com/cucumber_and_cheese -------------- next part -------------- An HTML attachment was scrubbed... URL: From colinsdaddy at gmail.com Fri Oct 12 15:43:49 2012 From: colinsdaddy at gmail.com (Hugh McGowan) Date: Fri, 12 Oct 2012 10:43:49 -0500 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I don't think this is a requirement - we should pick the best tool not the best-documented tool :) On Fri, Oct 12, 2012 at 10:13 AM, ?eljko Filipin wrote: > On Thu, Oct 11, 2012 at 2:35 PM, ?eljko Filipin > wrote: > > What do you think about adding page-object gem[1] to watir project? > > I almost forgot to mention it. One of the reasons I would recommend > page-object gem before other similar gems is that there is a book[1] that > shows how to use it. > > ?eljko > -- > [1] https://leanpub.com/cucumber_and_cheese > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Fri Oct 12 18:43:22 2012 From: jarmo.p at gmail.com (Jarmo) Date: Fri, 12 Oct 2012 21:43:22 +0300 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I agree. Sometimes a good readme is enough to master something :) J. On Fri, Oct 12, 2012 at 6:43 PM, Hugh McGowan wrote: > I don't think this is a requirement - we should pick the best tool not the > best-documented tool :) > > On Fri, Oct 12, 2012 at 10:13 AM, ?eljko Filipin > wrote: > >> On Thu, Oct 11, 2012 at 2:35 PM, ?eljko Filipin >> wrote: >> > What do you think about adding page-object gem[1] to watir project? >> >> I almost forgot to mention it. One of the reasons I would recommend >> page-object gem before other similar gems is that there is a book[1] that >> shows how to use it. >> >> ?eljko >> -- >> [1] https://leanpub.com/cucumber_and_cheese >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.rogers at shaw.ca Fri Oct 12 20:37:07 2012 From: paul.rogers at shaw.ca (Paul Rogers) Date: Fri, 12 Oct 2012 14:37:07 -0600 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: I have often thought that the watir 'finders' should have been modeled after jquery. Except that I dont think jquery was around then. I have frequently wondered about a watir-jquery library that would allow some very close syntax of jquery to be used. And, if jquery is on the page, to use that where appropriate. I suspect it would make people who are currently web developers more interested in watir. Paul On Fri, Oct 12, 2012 at 12:43 PM, Jarmo wrote: > I agree. Sometimes a good readme is enough to master something :) > > J. > > > On Fri, Oct 12, 2012 at 6:43 PM, Hugh McGowan wrote: >> >> I don't think this is a requirement - we should pick the best tool not the >> best-documented tool :) >> >> On Fri, Oct 12, 2012 at 10:13 AM, ?eljko Filipin >> wrote: >>> >>> On Thu, Oct 11, 2012 at 2:35 PM, ?eljko Filipin >>> wrote: >>> > What do you think about adding page-object gem[1] to watir project? >>> >>> I almost forgot to mention it. One of the reasons I would recommend >>> page-object gem before other similar gems is that there is a book[1] that >>> shows how to use it. >>> >>> ?eljko >>> -- >>> [1] https://leanpub.com/cucumber_and_cheese >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development From zeljko.filipin at gmail.com Fri Oct 12 20:55:35 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 22:55:35 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Fri, Oct 12, 2012 at 8:43 PM, Jarmo wrote: > I agree. Sometimes a good readme is enough to master something :) > > On Fri, Oct 12, 2012 at 6:43 PM, Hugh McGowan wrote: >> I don't think this is a requirement - we should pick the best tool not the best-documented tool :) I disagree. I think good documentation is as important as good tool. I guess the two of you are far better developers than average watir user. As much as reading code for everyone on this list is normal, it is not an option for a lot of people. My guess would be that average watir user knows just the basics of programming, object orientation, version control... Good documentation is really important to them. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Fri Oct 12 20:57:19 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 12 Oct 2012 22:57:19 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Fri, Oct 12, 2012 at 10:37 PM, Paul Rogers wrote: > I have often thought that the watir 'finders' should have been > modeled after jquery. Interesting thought. I actually really like watir API, but the reason could be that I got used to it over the years. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Fri Oct 12 20:58:23 2012 From: jarmo.p at gmail.com (Jarmo) Date: Fri, 12 Oct 2012 23:58:23 +0300 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: As i remember then OperaWatir has similar functionality to jQuery finders. Doing jQuery finders is easy, since it is almost already supported by using :css as locator. The hard part is what to do with the results. Here's an example: browser.element(".row).click What should that line above do? Should it click only on the first result or should it click on every result? I find myself pretty often confused as to what function call will be invoked on all results found by jquery and what is invoked only on the first one. We could however simplify it to always work on the first result. In other words - we could allow only one parameter for #element to be used with css selectors like jquery does. However i'm not sure this would be the thing needed for increasing popularity of Watir (is watir not so popular anymore?). J. On Fri, Oct 12, 2012 at 11:37 PM, Paul Rogers wrote: > I have often thought that the watir 'finders' should have been > modeled after jquery. Except that I dont think jquery was around > then. > > I have frequently wondered about a watir-jquery library that would > allow some very close syntax of jquery to be used. And, if jquery is > on the page, to use that where appropriate. > > I suspect it would make people who are currently web developers more > interested in watir. > > Paul > > On Fri, Oct 12, 2012 at 12:43 PM, Jarmo wrote: > > I agree. Sometimes a good readme is enough to master something :) > > > > J. > > > > > > On Fri, Oct 12, 2012 at 6:43 PM, Hugh McGowan > wrote: > >> > >> I don't think this is a requirement - we should pick the best tool not > the > >> best-documented tool :) > >> > >> On Fri, Oct 12, 2012 at 10:13 AM, ?eljko Filipin > >> wrote: > >>> > >>> On Thu, Oct 11, 2012 at 2:35 PM, ?eljko Filipin > >>> wrote: > >>> > What do you think about adding page-object gem[1] to watir project? > >>> > >>> I almost forgot to mention it. One of the reasons I would recommend > >>> page-object gem before other similar gems is that there is a book[1] > that > >>> shows how to use it. > >>> > >>> ?eljko > >>> -- > >>> [1] https://leanpub.com/cucumber_and_cheese > >>> > >>> _______________________________________________ > >>> Wtr-development mailing list > >>> Wtr-development at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/wtr-development > >> > >> > >> > >> _______________________________________________ > >> Wtr-development mailing list > >> Wtr-development at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/wtr-development > > > > > > > > _______________________________________________ > > Wtr-development mailing list > > Wtr-development at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-development > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Fri Oct 12 18:29:22 2012 From: notifications at github.com (L2G) Date: Fri, 12 Oct 2012 11:29:22 -0700 Subject: [Wtr-development] [watirspec] Minor typo fixes (#37) Message-ID: These are minor corrections I made to fix spelling and an outdated URL. All changes should only affect comments or static strings. But of course they have the potential to affect anything external to WatirSpec dependent on the exact strings used by spec examples. You can merge this Pull Request by running: git pull https://github.com/L2G/watirspec typos Or you can view, comment on it, or merge it online at: https://github.com/watir/watirspec/pull/37 -- Commit Summary -- * Correct an outdated GitHub issue URL and a typo * Fix spelling -- File Changes -- M browser_spec.rb (4) M checkbox_spec.rb (10) M option_spec.rb (2) M radio_spec.rb (6) M select_list_spec.rb (2) M text_field_spec.rb (2) M tr_spec.rb (4) -- Patch Links -- https://github.com/watir/watirspec/pull/37.patch https://github.com/watir/watirspec/pull/37.diff --- Reply to this email directly or view it on GitHub: https://github.com/watir/watirspec/pull/37 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Fri Oct 12 20:02:52 2012 From: notifications at github.com (Jari Bakken) Date: Fri, 12 Oct 2012 13:02:52 -0700 Subject: [Wtr-development] [watirspec] Minor typo fixes (#37) In-Reply-To: References: Message-ID: Thanks! --- Reply to this email directly or view it on GitHub: https://github.com/watir/watirspec/pull/37#issuecomment-9388536 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sqapro at gmail.com Sat Oct 13 04:47:49 2012 From: sqapro at gmail.com (Charles S van der Linden) Date: Fri, 12 Oct 2012 21:47:49 -0700 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: On Fri, Oct 12, 2012 at 1:26 AM, ?eljko Filipin wrote: > On Thu, Oct 11, 2012 at 8:48 PM, Hugh McGowan wrote: >> I think picking a page-object gem to support is fine but it's not clear to >> me that Jeff's gem is the right one. > > I know that at Blackbaud/Convio you use watirmark[1]. If there was watirmark > workshop this year at Austin maybe I would now be recommending it. :) Maybe that is something we should consider, >> For example, the one we use is different in some very basic ways. Ours is >> agnostic to the implementation so we don't care what is driving the "page". >> We use it for watir, selenium, editing XML files, calling WIN32OLE methods >> for our own DLLs, etc. For us, it's just an abstraction for grouping getters >> and setters and keeping the implementation separated from the usage of that >> implementation. I think it might be interesting to compare what Hugh's group is doing, with what my team is doing, and Jarmo's stuff. I wonder if we could come up with some common approach that could just be included as part of watir itself, a built in means to define page objects. There's so little to what we are doing I'm not even sure we it would be worth the effort to make a stand-alone gem out if it. OTOH I think it's pretty tightly bound to watir as a result. We define how to access form elements and such in the page objects. But since most of what we work with are fairly complicated objects in their own right (Learning units, Course Proposals, Course Offerings, Academic Calendars) we also use an approach of Test Objects that parallel what we are working with in the system under test. These objects know how to create themselves using the UI (and eventually we hope via calling services as well) update, delete etc. (of course when driving the UI they do all of that via the page objects) If someone wants to see it (it is somewhat in it's infancy, I'm sure you will find room for improvements ) you can fork the repro from https://github.com/rSmart/sambal > The only thing that I do not like about page-object gem is that it adds it's > own API on top of the driver. > > Examples[2]: > > browser.button(:id => 'an_id') # watir > button(:your_name, :id => 'an_id') # page-object > keyword :your_name {browser.button(:id => 'an_id')} #watirmark > > I really prefer how watirmark does it. But maybe it could be added to > page-object gem. That is one of the things we didn't like about page-object as well. The other problem we seemed to have (and forgive me if I'm not expressing this right) is that if you wanted to just invoke a standard watir method on something you could not, that function had to already be built into the PO version of the thing, or you had to bring it up as a generic element. I think there were also challenges with actions where doing something on a page needed to basically return another page object as a result. (Abe could elaborate more clearly on the things he found difficult) > >> Maybe this is a good topic to address in the Watir conference next year - >> we can have a page-object smackdown! > > +1 +1 Even if a compare and contrast and not a 'who is best' (implied by smackdown) I think it would be worth it > > I think this is the next big discussion that we need to have. +1 > > ?eljko > -- > [1] https://github.com/convio/watirmark > [2] https://github.com/cheezy/page-object/issues/102#issuecomment-6331222 > From notifications at github.com Wed Oct 17 10:51:16 2012 From: notifications at github.com (Penn Su) Date: Wed, 17 Oct 2012 03:51:16 -0700 Subject: [Wtr-development] [watir-webdriver] Firefox doesn't close properly (#166) In-Reply-To: References: Message-ID: I would recommend not use watir's method to close browser, because it has some weird behavior as @closed is reported is true when it is not, so I recommend for effective closing windows, use the Selenium web driver method So instead of `b.close` use `b.driver.quit` More effective :) --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/166#issuecomment-9523108 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Thu Oct 18 23:46:07 2012 From: notifications at github.com (oddKoncept) Date: Thu, 18 Oct 2012 16:46:07 -0700 Subject: [Wtr-development] [watir-webdriver] unable to send special keys to chrome using send_keys command (#167) Message-ID: I am attempting to: text_field(...).send_keys([:command, 'v']) on mac +chrome This same call works in FireFox v16.xx Also, just doing send_keys(["abc", "def"]) to chrome works perfectly. the :command is the issue Chromedriver v23.xx Chrome v21.xx --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/167 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Thu Oct 18 23:48:21 2012 From: notifications at github.com (Jari Bakken) Date: Thu, 18 Oct 2012 16:48:21 -0700 Subject: [Wtr-development] [watir-webdriver] unable to send special keys to chrome using send_keys command (#167) In-Reply-To: References: Message-ID: This is a known issue in [ChromeDriver](https://code.google.com/p/chromedriver/issues/detail?id=30). Feel free to comment on or star that bug to draw attention to it. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/167#issuecomment-9585456 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Fri Oct 19 00:03:16 2012 From: notifications at github.com (oddKoncept) Date: Thu, 18 Oct 2012 17:03:16 -0700 Subject: [Wtr-development] [watir-webdriver] unable to send special keys to chrome using send_keys command (#167) In-Reply-To: References: Message-ID: Amazing response time, thank you very much jari. Seems like this has been an ongoing problem that they are aware of since 2011. I have posted an additional comment to maybe escalate fixing it =). --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/167#issuecomment-9585704 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 20 11:22:39 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 20 Oct 2012 04:22:39 -0700 Subject: [Wtr-development] [watir-classic] Element.focus loops with nested frames (#41) In-Reply-To: References: Message-ID: Thanks! --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/41#issuecomment-9630284 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 20 13:49:41 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 20 Oct 2012 06:49:41 -0700 Subject: [Wtr-development] [watir] watir 1.5.3 is not clicking links on IE9 (#3) In-Reply-To: References: Message-ID: Try newest watir-classic to see if it works for you. I don't have any problems using IE9 with watir. Closing for now. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/3#issuecomment-9631414 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 20 13:52:33 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 20 Oct 2012 06:52:33 -0700 Subject: [Wtr-development] [watir] rautomation dependency missing in gem (#4) In-Reply-To: References: Message-ID: Watir-classic has a dependency for RAutomation set properly. Like this: ```` 'rautomation', '~>0.7.2' ```` I'm not sure if that was not the case ~3 months ago. Closing. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/4#issuecomment-9631437 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 20 13:57:45 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 20 Oct 2012 06:57:45 -0700 Subject: [Wtr-development] [watir] Getting the Real HTML Source (#2) In-Reply-To: References: Message-ID: Watir returns document outerHTML: http://msdn.microsoft.com/en-us/library/ie/ms534310(v=vs.85).aspx What do you mean by the "real" html? --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/2#issuecomment-9631481 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 20 14:01:04 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 20 Oct 2012 07:01:04 -0700 Subject: [Wtr-development] [watir] Driver library needs to be loaded before executing any of the real methods. (#5) Message-ID: Problem with current solution is that for example ````#start````, ````#attach```` and any other Watir class methods are not accessible because watir-webdriver or watir-classic is loaded in ````#new````. It seems that the loading should be done by ````#method_missing```` or by any other means to fix these problems. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/5 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Sun Oct 21 11:19:20 2012 From: jarmo.p at gmail.com (Jarmo) Date: Sun, 21 Oct 2012 14:19:20 +0300 Subject: [Wtr-development] Watir 4.0.1 Released! Message-ID: Hello everyone! I'm happy to announce that Watir 4.0.1 has been released. Add this into your Gemfile: gem "watir", "~>4.0.1" or install it manually with: gem install watir Then in your test file: require "watir" browser = Watir::Browser.new Changes: * Add support for Watir::Browser.start, Watir::Browser.attach and any other Watir::Browser methods. Refer to the additional usage at the readme: https://github.com/watir/watir/blob/master/README.md With Best Regards, Jarmo Pertman -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sun Oct 21 11:20:40 2012 From: notifications at github.com (Jarmo Pertman) Date: Sun, 21 Oct 2012 04:20:40 -0700 Subject: [Wtr-development] [watir] Driver library needs to be loaded before executing any of the real methods. (#5) In-Reply-To: References: Message-ID: Fixed in https://github.com/watir/watir/commit/43d3b6341d22956789e809dfeca421a7a0d96e0f and in version 4.0.1. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/5#issuecomment-9641716 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sun Oct 21 11:50:05 2012 From: notifications at github.com (Jarmo Pertman) Date: Sun, 21 Oct 2012 04:50:05 -0700 Subject: [Wtr-development] [watir-classic] @container is nil when locating a element from frame.elements (#37) In-Reply-To: References: Message-ID: Cannot reproduce it in watir-classic 3.2.0. I had to modify the code provided by you though, since you are calling ````#click```` on an Array. I just called ````#first```` after doing ````#select````. Closing this. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/37#issuecomment-9641910 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sun Oct 21 11:50:35 2012 From: notifications at github.com (Jarmo Pertman) Date: Sun, 21 Oct 2012 04:50:35 -0700 Subject: [Wtr-development] [watir-classic] watir-2.0.4/lib/watir/ie-class.rb:567: [BUG] Segmentation fault (#39) In-Reply-To: References: Message-ID: Closing this. If the problem persists, then please reopen or create a new issue with more information. Thanks! --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/39#issuecomment-9641915 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sun Oct 21 12:54:00 2012 From: notifications at github.com (Jarmo Pertman) Date: Sun, 21 Oct 2012 05:54:00 -0700 Subject: [Wtr-development] [watir-classic] Watir::Option#text() method returns an empty string for all options which are not currently selected (invisible) (#43) In-Reply-To: References: Message-ID: I can't reproduce this problem. I'm using https://github.com/watir/watirspec/blob/master/html/forms_with_input_elements.html and then this code: ```` (rdb:1) browser.select_list(:id => "delete_user_username").options.map(&:text) ["", "Username 1", "Username 2", "Username 3"] (rdb:1) browser.select_list(:id => "delete_user_username").option(:index => 2).text "Username 2" ```` Can you provide me the html where you're having this problem? --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/43#issuecomment-9642322 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Mon Oct 22 08:48:35 2012 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Mon, 22 Oct 2012 10:48:35 +0200 Subject: [Wtr-development] Adding page-object gem to watir project In-Reply-To: References: Message-ID: To sum up the conversation: I am the only one that thinks adding page-object gem to the watir project would be a good thing. In that case, things remain as usual, we will not add the gem to the project. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Tue Oct 23 22:59:09 2012 From: notifications at github.com (Ferhat Elmas) Date: Tue, 23 Oct 2012 15:59:09 -0700 Subject: [Wtr-development] [watir-webdriver] Elements couldn't be found in unvalidated HTML (#168) Message-ID: HTML: some text Code: qt = @browser.strong(style: 'display:block;width:425px;').text This code throws `UnknownObjectException`. Is it a bug, known issue or only my blindness? --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/168 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Wed Oct 24 01:20:39 2012 From: notifications at github.com (Jari Bakken) Date: Tue, 23 Oct 2012 18:20:39 -0700 Subject: [Wtr-development] [watir-webdriver] Elements couldn't be found in unvalidated HTML (#168) In-Reply-To: References: Message-ID: I can't reproduce. Feel free to reopen if you have a reproducible case: ```console $ cat test.rb require 'watir-webdriver' w = Watir::Browser.new begin w.goto "data:text/html,#{URI.encode DATA.read}" p w.strong(:style => "display:block;width:425px;").text ensure w.quit end __END__ some text % $ ruby test.rb "some text" $ ``` --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/168#issuecomment-9724584 -------------- next part -------------- An HTML attachment was scrubbed... URL: From connor.qa.guy at gmail.com Fri Oct 26 10:16:34 2012 From: connor.qa.guy at gmail.com (Connor Culleton) Date: Fri, 26 Oct 2012 11:16:34 +0100 Subject: [Wtr-development] Classic Element.Style vs Webdriver Element.Style Message-ID: Hey Jarmo, In the latest wair-classic the element.style() method works as follows # return the css style as a string def style assert_exists ole_object.style.cssText end but it still doesn't behave like the webdriver version (which takes a property argument). def style(property = nil) if property assert_exists @element.style property else attribute_value("style").to_s.strip end end It would be really useful if the watir-classic behaviour matched the web driver version. Are there any plans to update this in the future or is there a specfic reason they are different? Thanks for everything, Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Fri Oct 26 11:31:09 2012 From: notifications at github.com (afuge) Date: Fri, 26 Oct 2012 04:31:09 -0700 Subject: [Wtr-development] [watir-classic] Watir::Option#text() method returns an empty string for all options which are not currently selected (invisible) (#43) In-Reply-To: References: Message-ID: Hi Jarmo, Thanks for checking it. After your failure to reproduce it we've investigated it in more depth and found out that there was another override in our framework which caused the original problem. So I think the issue can be closed. Sorry for the extra work. Thanks, Andras --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/43#issuecomment-9810054 -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Fri Oct 26 15:15:28 2012 From: notifications at github.com (Jarmo Pertman) Date: Fri, 26 Oct 2012 08:15:28 -0700 Subject: [Wtr-development] [watir-classic] Watir::Option#text() method returns an empty string for all options which are not currently selected (invisible) (#43) In-Reply-To: References: Message-ID: Nice to know! Closing. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-classic/issues/43#issuecomment-9816274 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Fri Oct 26 15:18:28 2012 From: jarmo.p at gmail.com (Jarmo) Date: Fri, 26 Oct 2012 18:18:28 +0300 Subject: [Wtr-development] Classic Element.Style vs Webdriver Element.Style In-Reply-To: References: Message-ID: I don't see any reason why it should not be doable in watir-classic too - didn't know that feature exists in watir-webdriver. Please open up a feature request under https://github.com/watir/watir-classic/issues and i'll try to introduce that in the next version. J. On Fri, Oct 26, 2012 at 1:16 PM, Connor Culleton wrote: > Hey Jarmo, > > In the latest wair-classic the element.style() method works as follows > > # return the css style as a string > def style > assert_exists > ole_object.style.cssText > end > > > but it still doesn't behave like the webdriver version (which takes a > property argument). > > def style(property = nil) > if property > assert_exists > @element.style property > else > attribute_value("style").to_s.strip > end > end > > > It would be really useful if the watir-classic behaviour matched the web > driver version. Are there any plans to update this in the future or is > there a specfic reason they are different? > > Thanks for everything, > Connor > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.ikhelis at gmail.com Fri Oct 26 15:34:27 2012 From: alex.ikhelis at gmail.com (Aliaksandr Ikhelis) Date: Fri, 26 Oct 2012 16:34:27 +0100 Subject: [Wtr-development] Classic Element.Style vs Webdriver Element.Style In-Reply-To: References: Message-ID: Thanks Jarmo, we will raise the request. JFYI both, this is the original discussion around #style() in watir and is the reason we are following up on this: https://github.com/watir/watir-webdriver/issues/11 Thank you, Aliaksandr Ikhelis On Fri, Oct 26, 2012 at 4:18 PM, Jarmo wrote: > I don't see any reason why it should not be doable in watir-classic too - > didn't know that feature exists in watir-webdriver. Please open up a > feature request under https://github.com/watir/watir-classic/issues and > i'll try to introduce that in the next version. > > J. > > On Fri, Oct 26, 2012 at 1:16 PM, Connor Culleton wrote: > >> Hey Jarmo, >> >> In the latest wair-classic the element.style() method works as follows >> >> # return the css style as a string >> def style >> assert_exists >> ole_object.style.cssText >> end >> >> >> but it still doesn't behave like the webdriver version (which takes a >> property argument). >> >> def style(property = nil) >> if property >> assert_exists >> @element.style property >> else >> attribute_value("style").to_s.strip >> end >> end >> >> >> It would be really useful if the watir-classic behaviour matched the web >> driver version. Are there any plans to update this in the future or is >> there a specfic reason they are different? >> >> Thanks for everything, >> Connor >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Sat Oct 27 15:57:26 2012 From: jarmo.p at gmail.com (Jarmo) Date: Sat, 27 Oct 2012 18:57:26 +0300 Subject: [Wtr-development] Watir-Classic 3.3.0 Released! Message-ID: Hello everyone! I'm happy to announce that Watir-Classic 3.3.0 has been released! Put it into your Gemfile: gem "watir-classic", "~> 3.3.0" Or install it manually with: gem install watir-classic Changes: * Add support for optional Element#style property argument, which allows to get specific css style attribute value. * Add support for locating Link by a :name. Fixes #42. * Avoid endless loop when focusing elements inside of a frame. Closes #41. * Cookies#delete handles the situation if browser is on about:blank. * Remove Image#file_created_date method since IE does not provide accurate information. Closes #36. * Use MultiJSON gem instead of the Yajl::Ruby gem as a dependency for parsing #execute_script results. With Best Regards, Jarmo Pertman -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jarmo.P at gmail.com Sat Oct 27 16:00:53 2012 From: Jarmo.P at gmail.com (Jarmo Pertman) Date: Sat, 27 Oct 2012 09:00:53 -0700 (PDT) Subject: [Wtr-development] Classic Element.Style vs Webdriver Element.Style In-Reply-To: References: Message-ID: It is now implemented in Watir-Classic 3.3.0. Jarmo Pertman ----- IT does really matter - http://itreallymatters.net On Friday, October 26, 2012 6:34:55 PM UTC+3, alex.ikhelis wrote: > > Thanks Jarmo, we will raise the request. > > JFYI both, this is the original discussion around #style() in watir and is > the reason we are following up on this: > > https://github.com/watir/watir-webdriver/issues/11 > > Thank you, > Aliaksandr Ikhelis > > > On Fri, Oct 26, 2012 at 4:18 PM, Jarmo >wrote: > >> I don't see any reason why it should not be doable in watir-classic too - >> didn't know that feature exists in watir-webdriver. Please open up a >> feature request under https://github.com/watir/watir-classic/issues and >> i'll try to introduce that in the next version. >> >> J. >> >> On Fri, Oct 26, 2012 at 1:16 PM, Connor Culleton >> > wrote: >> >>> Hey Jarmo, >>> >>> In the latest wair-classic the element.style() method works as follows >>> >>> # return the css style as a string >>> def style >>> assert_exists >>> ole_object.style.cssText >>> end >>> >>> >>> but it still doesn't behave like the webdriver version (which takes a >>> property argument). >>> >>> def style(property = nil) >>> if property >>> assert_exists >>> @element.style property >>> else >>> attribute_value("style").to_s.strip >>> end >>> end >>> >>> >>> It would be really useful if the watir-classic behaviour matched the >>> web driver version. Are there any plans to update this in the future or is >>> there a specfic reason they are different? >>> >>> Thanks for everything, >>> Connor >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-dev... at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-dev... at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notifications at github.com Sat Oct 27 16:00:13 2012 From: notifications at github.com (Jarmo Pertman) Date: Sat, 27 Oct 2012 09:00:13 -0700 Subject: [Wtr-development] [watir-webdriver] style() method works differently compared to Watir (#11) In-Reply-To: References: Message-ID: FYI, this is now implemented in Watir-Classic 3.3.0. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/11#issuecomment-9836766 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarmo.p at gmail.com Wed Oct 31 11:30:17 2012 From: jarmo.p at gmail.com (Jarmo) Date: Wed, 31 Oct 2012 13:30:17 +0200 Subject: [Wtr-development] test-page 0.0.1 has been released! Message-ID: test-page helps you to write easily maintainable integration tests by using Watir, Selenium or any other testing library by implementing Page Objects pattern. Add it into your Gemfile: gem "test-page" or install it with: gem install test-page Read more about it at https://github.com/jarmo/test-page#readme Jarmo Pertman ----- IT does really matter - http://itreallymatters.net -------------- next part -------------- An HTML attachment was scrubbed... URL: