[wtr-general] Re: [Wtr-development] Classic Element.Style vs Webdriver Element.Style

2012-10-26 Thread Aliaksandr Ikhelis
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-developm...@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
>
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [Wtr-development] [wtr-general] Watir-Classic 3.2.0 Released!

2012-10-04 Thread Aliaksandr Ikhelis
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-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: [Wtr-development] watir-webdriver 0.5.2

2012-02-01 Thread Aliaksandr Ikhelis
Great job, thank you, Jari!

Jarmo - any specific plans when final watir3.0 will be released?

Also, wonder is there any consideration for matching Watir Cookies API to
watirspec as well?

Thank you,
Aliaksandr Ikhelis


On Wed, Feb 1, 2012 at 11:00 AM, Alister Scott wrote:

> I have created a new page on watirwebdriver.com about the new cookies
> API. Thanks Jari for implementing so quickly.
>
> http://watirwebdriver.com/cookies/
>
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: [Wtr-development] Watir 1.6.6 final released

2010-10-03 Thread Aliaksandr Ikhelis
Hi guys,

Thanks a lot for the new version of Watir!
Sorry for looping into this thread. I believe many users wil have similar
questions.

1. Is installation instructions page (with all the recommended ruby/rubygems
versions) is up-to-date? http://watir.com/installation/
This have always been a bit tricky to get one's test environment to set up
properly.
2. Is current watir-webdriver integration stable enough for usage? What is
recommended for cross-browser testing with watir: watir for IE and FF, or
watir-webdriver?

Thank you,
Aliaksandr Ikhelis


On Sun, Oct 3, 2010 at 8:53 PM, Jarmo  wrote:

> Hey!
>
> You forgot to tag it on git. You can still do it, i guess, otherwise
> the whole changelog link in CHANGES doesn't work -
> http://github.com/bret/watir/compare/v1.6.5...v1.6.6
>
> Although i don't know if you tag it on release branch will the link
> still work...
>
> Jarmo
>
> On Sun, Oct 3, 2010 at 9:35 PM, Charley Baker 
> wrote:
> > Hello (fire)watirists!
> >
> > We are happy to announce that a (very) long-waited (Fire)Watir
> > 1.6.6 final gem is out!
> >
> > You can check out changelog at
> http://github.com/bret/watir/blob/master/CHANGES
> >
> > Feel free to give it a test drive. Here are the basic instructions.
> >
> > Make sure your local gem system is up to date.
> > gem update --system
> > run gem -v at the command line, you should be running 1.3.7
> >
> > gem install watir
> > Note: If you're installing on Mac or Linux you'll want to use
> > firewatir for the gem install.
> >
> > ...and give it a go. Try to use it with your existing test suites and
> > so on to see if there are any issues.
> > If there are any problems then:
> > 1) Fix it and send a pull request on Github, our main github repo:
> > http://github.com/bret/watir
> >  This is the preferred way of accepting patches, we're happy to work
> > with you on how to do this, github also has extensive docs on how to
> > fork and submit a pull request.
> > 2) Add it to our JIRA tracker: http://jira.openqa.org/browse/WTR
> > If you need help with that let us know.
> >
> > If you do have time and can help, please let us know, we can take any
> > help from documentation to running tests on various OSes. We're a
> > friendly project and would be happy to mentor you if you and/or your
> > company is willing to put in the time.
> >
> >
> > Cheers,
> > The Watir Team
> > ___
> > Wtr-development mailing list
> > wtr-developm...@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-development
> >
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com