I have been working with windowlicker web recently. I specifically used
it on JSF and found some problems with that (which where actually more
webdriver related). Yet I added some features I needed in that respect
but haven't committed them yet. Planning to do so later this week.
Anyway, since I am working with windowlicker at the moment, I might be
able to help you out with questions you have.
Cheers
Rob
If I get to the point where I understand it enough to write up some
documentation I would be happy to do that.
@Rob - My question may be basic. I'm testing an autocomplete field
(implemented with the jQuery autocomplete extension) and I just want
to simulate pressing the down key and then check the value of the
option in focus.
I don't have it in front of my right now, but I think AsynchWebDriver
has basic user commands like "type" but how do you execute other
commands like keyDown and keyUp or just keyPress?
Thanks in advance.
rusty
WindowLicker's web package bases it's functionality on (a bit of an old
version i believe, of) webdriver. So here's how i went about stuff i
needed that did not work straight away, or that appeared to be not
available at all. Look at the webdriver API to see if your needed
functions are available there (e.g. your keypresses). If so (and when
you'r sure that AsyncElementDriver does not expose that functionality,
then extend AsyncElementDriver. I started with subclassing that one, as
i was not a committer at first, which made me subclass AsyncWebDriver as
well to return my subclassed AsyncElementDriver.
I hope this helps. Let me know, if and how you solved it.
Cheers
Rob
> To unsubscribe from this group, send email to windowlicker-users
> +unsub...@googlegroups.com.
I did consider extending AsycElementDriver too. I'm looking into
webdriver - which appears to have merged with Selenium to create
Selenium 2:
http://google-opensource.blogspot.com/search/label/webdriver
Using the DOM elements explicitly (as I ended up doing) means if I
change the way I implement autocomplete I will need to change the test
code.
Using the key commands as you suggest, I'll need to detect what values
are in focus or selected after the key strokes. So far I can't find a
way to do that and maybe it's not possible.
Jacob
(an alias is meaningless on these boards)