Arrayinarray=[];
let options = driver.findElements(By.css("[section='trim'] select"));
options.then(swap=>{
swap.map((key)=>{
var s=key.findElements(By.css("option"));
s.then(mt=>{
Arrayinarray.push(mt)
})
})
});
this is my selenium code.
I have to get each element of the array in correct order
For example.
var Arrayinarray=[[1,2,3],[4,5,6,5],[7,8,9],[1,6,3],[1,5,7][1,2,2],[7,2,9,3]];
Expected output:
1471117 1471112 1471119 1471113 1471127 1471122
1471129 1471123 1471127 1471122 1471129 1471123
...
I have to permutate the combination of this multidimensional array. I placed many for loops and map functions. However, it does not work.