I have a test that is going into an elements span > div
but there are two of them so when I run the test it concatenates both of them into one number 13,900879,210
. I need it to give me them separately to compare them such as 13,900
and 879,210
. Here is my code. Can anyone help with this?
cy.get(`div[id]=2`).find('span').find('div').invoke('text').then((nums) => {
cy.log(nums) // 13,900879,210
})