Tom Hicks
Tom Hicks
Hi, cheers for the issue. I agree that's a bit annoying. It's down to how the color scales are generated, but I suppose I could make it work. If you...
Step two would be `Color(input).lightness()` - calling without a value returns the color's lightness, I think. You'd probably need to generate all the desired lightnesses first, then do the same...
In this case, it's a predicate (Boolean-returning) function that is polled until it returns true. A block is essentially a function in javascript. It's a reference to an executable item....
It's not strictly a callback as it's not for notification, but people understand the notion of a callback. It's really a predicate function. I guess the block term comes from...
``` javascript MyWidget = this.Widget.extend({ root: '#whatever', isReady: function () { return !this.el.hasClass('fetching-data'); // whatever the real API is } }); // In a step var instance = new MyWidget();...
I would also be good to be able to do the waiting inside interaction methods: ``` javascript var MyWidget = this.Widget.extend({ save: function () { return this.click('save') .then(function (saveClickResolution) {...
Hang on a sec, isn't this available already via widget.getDriver()? http://selenium.googlecode.com/git/docs/api/javascript/source/lib/webdriver/webdriver.js.src.html#l588
I suspect you're not newing the right thing. Try ``` LoginForm = @Widget.Form.extend({ blah }) form = new LoginForm ```
This is the only reason I'm not using this library at the moment!