browser.execute(function () { document.getElementsByClassName('vitara-point')[1].innerHTML = 'bar2' }).assert.containsText('rect:nth-child(2)', 'bar2').moveToElement('rect:nth-child(2)', 2, 2).click('rect:nth-child(2)').pause(2000) //bar3 //browser.execute(function(){document.getElementsByClassName('vitara-point')[2].innerHTML = 'bar3'}).assert.containsText('rect:nth-child(3)', 'bar3').moveToElement('rect:nth-child(3)', 2,2).click('rect:nth-child(3)').pause(2000)Probando si el elemento rect:nth-child(3) contiene el texto 'bar3' en 5000ms - esperado "contiene el texto 'bar3'" pero obtuvo: "no contiene 'bar3'" (5162ms)
Quiero ir al lado del segundo elemento del enésimo hijo, pero para el segundo funciona, no para el tercero.