I have to click a right arrow button while is enabled on the page.
This is my code:
var sig = element(by.xpath("//*[@id='WidgetELearning-inner-auto']/div/div/div[1]/div/div/div[2]/div/button[2]/i"));
sig.isEnabled().then(function (result) {
while (result) {
sig.click();
return sig;
}
It only clicks two times, and I need clicking while element is enabled. How can I do?
Aucun commentaire:
Enregistrer un commentaire