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 convert a String into an array of CharSequences. Maybe it will work with (into-array ["string"])?
Paul On Thu, Apr 16, 2009 at 2:25 PM, prhlava <prhl...@googlemail.com> wrote: > > > 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 java.lang.CharSequence "my-string") but > the cast does only "compare" AFAIK. > > Is there a way to give the library what it wants from Clojure? > > Kind regards, > > Vlad > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---