javascript - Protractor Times Out Waiting For Element -


i've been looking @ documentation protractor , want able select array of via selector of sort , text value of first 1 , assert it. no matter try protractor times out when try gettext() , get().

this i'm looking at. reference

here code:

describe('e2e: global scan', function () {      beforeeach(function () {         browser.get('#/dashboard/global-scan');     });      it('should grab tags within li tags', function () {          element.all(by.css('li a')).then(function(items) {             expect(items.length).tobedefined()             expect(items[0].gettext()).tobedefined();         });          var list = element.all(by.css('li a'));         expect(list.length).tobedefined()         expect(list.get(0).gettext()).tobedefined();      });  }); 

as can see tried both then promise function , save result of element.all variable , looping through that. doesn't work either. happens test times out.

failures:

1) e2e: global scan should grab tags within li tags message: error: timed out waiting protractor synchronize page after 10 seconds. please see https://github.com/angular/protractor/blob/master/docs/faq.md

if try browser.element starts return me something. still breaks when use or gettext().

does have ideas? doing documentation says doesn't work. have old version of protractor?

you can increase setting protractor config

allscriptstimeout: timeout_in_millis 

refer the https://github.com/angular/protractor/blob/master/docs/timeouts.md page waiting page synchronization topic more info.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -