vendredi 2 janvier 2015

Protractor - scroll the page in Android

I am using Android Hybrid app for testing using Protractor. I want to scroll the page in the app. I am using the ScrollTo or ScrollBy. It's neither scrolling the Page nor giving any error, but its printing the text in the visible page.


Please help.


My Code is below:



browser.executeScript('window.scrollBy(0,100000);').then(function() {
element.all(by.css('.row.qcl-section-header')).getText().then( function(text) {
console.log(text)
});
});

Aucun commentaire:

Enregistrer un commentaire