Hello,
I am trying to use a java library ( http://code.google.com/p/webdriver/
), the method I need to call has signature:
sendKeys(java.lang.CharSequence... keysToSend)
If I give it a clojure string, the cannot be cast message appears in
the stack trace.
I have tried explicit (cast
I would be interested in seeing a full stack trace and some pastbined
code. there are no clojure strings, just java strings, and java
strings are charsequences.
On Thu, Apr 16, 2009 at 11:25 AM, prhlava prhl...@googlemail.com wrote:
Hello,
I am trying to use a java library (
Are you trying to give it a string, or an array of strings?
sendKeys takes a variable number of arguments. The error you are getting is
that it can't cast a java.lang.String into [Ljava.lang.CharSequence, where
the '[' at the beginning of the type means an array. It is telling you that
it cannot
Hello Paul,
Are you trying to give it a string, or an array of strings?
Maybe it will work with (into-array [string])?
Thank you, this was spot on, the correct call looks like:
(. query (sendKeys (into-array [my-string])))
Cheers!
Vlad
PS: Embarassingly, the hint is also in the FAQ...