Protractor moves on to next test without waiting
问题 I'm using protractor and when I run my tests on browserstack I receive the following error StaleElementReferenceError: stale element reference: element is not attached to the page document or depending on what I do in the beforeAll Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector ... Here is the code snippet causing the error: describe('...', () => { it('...', () => { expect(element.all(by.css(...)).count()).toBe