Thanks for the tip Julio. I pretty much did that by checking the containing 
modal div becomes visible to capabara-webkit. Not asserting on the graph, 
but I can't really see how I can ...

On Wednesday, 15 August 2012 11:45:39 UTC+10, Julio Cesar wrote:
>
> Try the SydJS list. You're likely to get good replies there for JS 
> questions. 
>
> Since canvas in itself is stateless, the only way to do it is keeping 
> the state in JavaScript (i.e.: keep an object around to store the 
> graph). You can then check the object's state, if say, you set an 
> attribute when the graph is fully rendered. 
>
> And yes, depending on how effectively and correctly you want to do 
> this, it gets more complex than my suggestion. 
>
>
>
>
> On Wed, Aug 15, 2012 at 11:41 AM, Simon Russell 
> <[email protected]<javascript:>> 
> wrote: 
> > What sort of stuff do you want to get?  The bitmap data? 
> > 
> > On Mon, Aug 13, 2012 at 4:23 PM, marsbomber 
> > <[email protected]<javascript:>> 
> wrote: 
> >> Hi guys, 
> >> 
> >> I have an HTML page, with a place holding "canvas" element, after DOM 
> loads, 
> >> my javascript draws out a graph inside the canvas. 
> >> 
> >> I don't seem to be able to interrogate the canvas element ... 
> >> 
> >> Any hints? 
> >> 
> >> Cheers, 
> >> Jim 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups 
> >> "Ruby or Rails Oceania" group. 
> >> To view this discussion on the web visit 
> >> https://groups.google.com/d/msg/rails-oceania/-/2hRJ-U0DUT0J. 
> >> To post to this group, send email to 
> >> [email protected]<javascript:>. 
>
> >> To unsubscribe from this group, send email to 
> >> [email protected] <javascript:>. 
> >> For more options, visit this group at 
> >> http://groups.google.com/group/rails-oceania?hl=en. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Ruby or Rails Oceania" group. 
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> [email protected] <javascript:>. 
> > For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en. 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rails-oceania/-/rzwIGCNKer8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to