Is there any feature like JavaScript Array push() Method ? #1776
ramesh-khatri
started this conversation in
General
Replies: 1 comment 1 reply
-
You can refer https://docs.taiko.dev/working_with_element_lists/ for more info how to loop through elements and read values. As mentioned in the documentation above
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to push the text to the array
let myArray = []
(await $('table> tbody> tr> td:nth-child(2)').elements()).forEach(async (ele) => {
let myData = await ele.text()
myArray.push(myData.trim())
});
But, I was not able to do so. I was not able to do the same using evaluate API also. Is there any way to do so?
Beta Was this translation helpful? Give feedback.
All reactions