detro/ghostdriver — pull request #34 by alxndrsn (2012-06-13 12:43:25+00:00)
Title: Implemented window/current/size

Hey, how's things? Found a few moments today, so here's implementations of /session/:sessionId/window/current/size (both GET and POST).

For error handling in the POST request, it might be more robust to check if width and height are valid integers, and possibly positive at that. What's the safest way to do that in JS? I suspect something like typeof(height) === 'number'.

Also included are `element/name` and `element/attribute`. I did these a week or so ago so I'm surprised I didn't already submit a pull request. Let me know if I'm being forgetful and there was something wrong with these.

Cheers,

Alex