(append-element-fn {element-selector :element-selector
append-element :append-element}
&
[window-obj])
Helper function for appending textarea in opener and focused window
Helper function for appending textarea in opener and focused window
(click-elem fn-selector & [window-obj])
Helper function for clicking on an element selected by fn-selector in window-obj
Helper function for clicking on an element selected by fn-selector in window-obj
(close-window fn-params window-obj)
Closes window of particular window-obj
fn-params are inherited from execute-vector-when-loaded function call of execute-fn and it's not used
done atom counts windows that are closed, if that number counts up to number of bots it closes the focused window too.
Closes window of particular window-obj fn-params are inherited from execute-vector-when-loaded function call of execute-fn and it's not used done atom counts windows that are closed, if that number counts up to number of bots it closes the focused window too.
(execute-if-element-loaded wait-for-selector execute-fn fn-params)
Executes function if element is loaded
Executes function if element is loaded
(execute-vector-when-loaded window-obj test-case-vector)
Execute vector of selectors and functions
window-obj - js/window object of where vector is going to be executed test-case-vector - vector of sub-vectors that contain selector which is waited for for function to be executed as first element of sub-vector function to be executed as second element of sub-vector second parameter of executing function is window-obj cause it needs reference to window where testing is going to take place first parameter of that function as third parameter of sub-vector
Example of vector: [[".content" executing-fn fn-params] [".body" executing-fn-two fn-params-two] ...]
Execute vector of selectors and functions window-obj - js/window object of where vector is going to be executed test-case-vector - vector of sub-vectors that contain selector which is waited for for function to be executed as first element of sub-vector function to be executed as second element of sub-vector second parameter of executing function is window-obj cause it needs reference to window where testing is going to take place first parameter of that function as third parameter of sub-vector Example of vector: [[".content" executing-fn fn-params] [".body" executing-fn-two fn-params-two] ...]
(log-action {log-obj :log-obj})
Log performed action in textarea logger
Log performed action in textarea logger
(open-new-window window-name)
Opens new window with URL same as of it's opener's
Opens new window with URL same as of it's opener's
(open-windows main-test-fn)
Opens as much windows as bots-number fn parameter says so and one more as focus window focus window and opener window serve as monitor windows
Tracks every opened window reference in global variable windows-atom and passes that variable to focused widnow
Also main-test-fn parameter is passed to focused window and bots-number
Opens as much windows as bots-number fn parameter says so and one more as focus window focus window and opener window serve as monitor windows Tracks every opened window reference in global variable windows-atom and passes that variable to focused widnow Also main-test-fn parameter is passed to focused window and bots-number
(opener-console log-obj)
Log testing progress in textarea of opener window
Log testing progress in textarea of opener window
(run-tests main-test-fn & [bots-number])
Function that should be called from code that is being tested
Function that should be called from code that is being tested
(wait-for-element wait-for-selector execute-fn fn-params)
Wait for selected element to load
Wait for selected element to load
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close