2016-11-23 30 views
0

我有一個函數我如何使用輸入文本(CLJ-的webdriver)

(defn xyz 
[] 
...) 

賦予值3

如何獲得這個值使用clj-在(input-text)使用調用一個函數webdriver的

我用(input text #abc (xyz))

但給我的錯誤

Exception in thread "main" java.lang.IndexOutOfBoundsException, 

請幫幫我。

+0

請提供更多的上下文,如一個最小的再現的情況下(完成)。另外,我沒有在clj-webdriver中看到一個函數'input-text'。 –

+0

@AlanThompson你可以在這裏找到FUNC [鏈接](https://github.com/semperos/clj-webdriver/wiki/Taxi-API-Documentation#input-text) – joey

+0

@AlanThompson我需要賦予傳遞函數在'(input-text)'。的一個值中,表單字段用值填充。我在做測試 – joey

回答

0

您的標記和字符串應該是字符串。

(input-text "#abc" (str (abc))) 
相關問題