samedi 28 janvier 2017

How to iterate thorugh a class in selerium web driver through nodejs?

My mocha tester runs on a selenium driver, in a nodeJS environment. I'm trying to iterate through a dynamically created class elements. Something like this:

for (let result of $('.results').value ) { result.getText; }

problem is, $('.results').value is an array or elements which are structured like this: {ELEMENT: 0} and can't be usable for additional data. Any suggestions?

Aucun commentaire:

Enregistrer un commentaire