[wtr-general] Re: How to select color from color picker

2013-03-23 Thread sk . fayaz
Thanks experts for your time and suggestions...your help is much more appreciated. On Wednesday, March 20, 2013 3:47:26 PM UTC, sk.f...@gmail.com wrote: Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread sk . fayaz
As mentioned by Dan/Chuck,first I inspected the color picker which popsup the multiple colored dvis. b.div(:class = color_swatch,:style = background-color: rgb(153, 51, 102); border-color: rgb(0, 0, 0);).click But its throwing the below error : invalid attribute: nil

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread sk . fayaz
Any help on this? On Wednesday, March 20, 2013 3:47:26 PM UTC, sk.f...@gmail.com wrote: Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the screenshot of the color picker... HTML code: input

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread Chuck van der Linden
On Thursday, March 21, 2013 8:12:17 AM UTC-7, sk.f...@gmail.com wrote: Any help on this? Please remember that folks here have jobs etc and respond to these questions on their own time. Also we may not be located in your same timezone, for example, your prior message to this came in at 4:43

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread Chuck van der Linden
On Thursday, March 21, 2013 4:43:00 AM UTC-7, sk.f...@gmail.com wrote: As mentioned by Dan/Chuck,first I inspected the color picker which popsup the multiple colored dvis. b.div(:class = color_swatch,:style = background-color: rgb(153, 51, 102); border-color: rgb(0, 0, 0);).click But its

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread Dan
I don't see any reason from what you've posted that you should be getting an error, but I agree with Chuck that we may need some additional info. Created a simple webpage html div class=color_swatch style=background-color: rgb(153, 204, 0); border-color: rgb(0, 0, 0); /div /html Found it using

[wtr-general] Re: How to select color from color picker

2013-03-21 Thread Chuck van der Linden
as an unsolicited side comment btw, based on the little bit of cucumber step code I've seen, you might want to read the following http://www.elabs.se/blog/15-you-re-cuking-it-wrong http://mislav.uniqpath.com/2010/09/cuking-it-right/ better yet get a copy of The Cucumber Book On Thursday,

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
What's the problem? What have you tried so far? On Wednesday, March 20, 2013 11:47:26 AM UTC-4, sk.f...@gmail.com wrote: Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the screenshot of the color picker...

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread sk . fayaz
Hi Dan, I've tried as below : browser.select_list(:class = 'color_picker').select '#993300' Got below error : unable to locate element, using {:class=color_picker, :tag_name=select} (Watir::Exception::UnknownObjectException) On Wednesday, March 20, 2013 3:47:26 PM UTC, sk.f...@gmail.com

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
I don't see a select list in the html you pasted above. I think you want to do something like the below. b.div(:style = background-color: rgb(153, 51, 102); border-color: rgb(0, 0, 0);).click Obviously you need to make sure the picker is visible before you click on any of those squares. You

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Chuck van der Linden
I think Dan is on the right track below. It looks a lot like that picker is something that pops up when you click or mouseover some other item on the screen. carefully observe what makes it appear, and let us know. use right-click to examine the element that makes the pallet appear. Try