File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 2761
2761
(fill driver q text))
2762
2762
(throw+ {:type :etaoin/argument
2763
2763
:message " Vector q-text must have even length"
2764
- :arg q-text}))
2764
+ :q-text q-text
2765
+ :length (count q-text)}))
2765
2766
2766
2767
:else (throw+ {:type :etaoin/argument
2767
- :message " Wrong argument type "
2768
- :arg q-text})))
2768
+ :message " Argument q-text must be a map or vector "
2769
+ :q-text q-text})))
2769
2770
2770
2771
(defn fill-human-el
2771
2772
" Have `driver` fill element `el` with `text` as if it were a real human using `opts`.
2836
2837
(doseq [[q text] (partition 2 q-text)]
2837
2838
(fill driver q text))
2838
2839
(throw+ {:type :etaoin/argument
2839
- :message " Vector q-text must have even length"
2840
- :arg q-text}))
2840
+ :message " Vector q-text must have even length"
2841
+ :q-text q-text
2842
+ :length (count q-text)}))
2841
2843
2842
2844
:else (throw+ {:type :etaoin/argument
2843
- :message " Wrong argument type "
2844
- :arg q-text}))))
2845
+ :message " Argument q-text must be a map or vector "
2846
+ :q-text q-text}))))
2845
2847
2846
2848
(defn select
2847
2849
" Convenience function to have `driver` select first option that includes `text` for select element found by query `q`.
You can’t perform that action at this time.
0 commit comments