Last active
June 11, 2020 17:53
-
-
Save gokselpirnal/7c4c501c1148dbcf02a07f2cc27990aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fill(cols){ | |
new Array(cols.length).fill(null).forEach(()=>document.querySelector('.actions button').click()) | |
document.querySelector('.actions button').click() | |
document.querySelectorAll('.nsn-i-delete').forEach((elm)=>elm.click()) | |
new Array(cols.length).fill(null).forEach((_,index)=>{ | |
cols[index].forEach((number)=>{ | |
document.querySelectorAll('.cs-body > .column-number:nth-of-type('+number+')')[index].click() | |
}) | |
}) | |
} | |
fill([ | |
[1,2,3,4,5,6], | |
[1,2,3,4,5,6], | |
[1,2,3,4,5,6] | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment