Re: How can Jon Doe Review his Behaviour?

Hi,

Answers are inline.

On Wed, Feb 13, 2013 at 1:24 PM, Jonathan Chetwynd <jay@peepo.com> wrote:

>  * *I understand that " some of the largest browser vendors have taken
> (or are taking) steps to make Selenium a native part of their browser."
> http://seleniumhq.org/
>
> I raised this HTML5 enhancement request:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=20448<http://www.w3.org/Bugs/Public/show_bug.cgi?id=20448>
> New element: pseudo-cursor
> "In many situations, it is helpful to be able to review behaviour,
> ie screencast, or game-replay for instance....
> http://gnote.org/eyed.html hosts an example demonstrating an eye-tracking
> test.
> ....
> The editor has referred me to your good selves,
> and I now need advice on whether webdriver is an appropriate solution.
>
> using webdriver:
>
> Can I as an end-user not as a developer,
> Play an HTML5 game, and review my progress, or
>

That's one of the demos from previous year's SeConf. There's a slideshow by
Dave Hunt (of Mozilla) demonstrating this working at:

http://www.slideshare.net/davehunt82/automating-canvas-applications-using-selenium

Slide 8 is probably the one that matters most to you. Note that this was
done by instrumenting the game to allow information useful for automation
to be extracted. That's pretty common: black box testing of modern apps
really isn't a winning solution.


> Watch a screencast, have a go and get comments on my skills?
> if so where?
>
> Is this a core part of what webdriver is intended to do?
>

WebDriver is designed to automate a browser from a user's perspective. We
provide some hooks that exceed a normal user in order to provide a complete
solution. Its most common use case is as an end to end testing tool.


> Can an author create a webdriver using client-side html5 & javascript only?
>

"Client side html5"? I'm not sure what you mean. One of the requirements in
the standard is that all implementations implement the JSON/HTTP protocol
given in one of the appendixes of the spec. The best documentation for this
is currently on the selenium site, though this won't be the case for much
longer.

http://code.google.com/p/selenium/wiki/JsonWireProtocol

This is used by the webdriver JS bindings (also supplied by the selenium
project) to allow tests to be written in JS (though there's an expectation
that these will be run via Node rather than in a browser):

http://code.google.com/p/selenium/wiki/WebDriverJs

The nice thing is that this is all just using the wire protocol, so will
continue to work as browser vendors implement webdriver themselves.

again examples please
>
> Is it the case that an ordinary person can visit a web site, see and
> understand webdriver in use?
> if so where?
>

The WebDriver spec is largely derived from the WebDriver API from the
selenium project. I'd advise looking at their documentation to find out
more:

http://docs.seleniumhq.org/docs/03_webdriver.jsp

There are also some books available on the subject, in particular one by
David Burns, who's the co-editor of the spec, that might be useful to you.


> apologies for my poor understanding of your intentions
>

No worries. We're here to answer questions and help clear things up. Feel
free to ask more :)

Regards,

Simon

Received on Monday, 18 February 2013 10:57:12 UTC