question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getPageTimeout is not working. "protractor": "5.4.2"

See original GitHub issue

getPageTimeout is waiting time for page to be loaded. Default wait time in 10 sec. I tried to change it to 1 second just for checking its functionality. I am expecting to give Error: Timed out waiting for page to load after 1000ms but it didn’t. Conf file:

exports.config = {
  
    specs: ['../Spec Files/DropdownHandling.js'],

    getPageTimeout: 1000,

  
}

Spec file:

describe('Handling dropdown', () => {
    it('Verify options', () => {
        browser.get("https://www.mobikwik.com/");
        element(by.model('operator')).click();
});

    

});

Even I tried by passing it to get(url, time) as well. But it didn’t work.

Is it something like we can not set less than default page load time out

Looking forward for the help.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
AyeshaBegamcommented, Mar 30, 2019

Yes the page is angular and it is a mobile application. Error is: Failed: script timeout: result was not received in 11 seconds. It is not entering the data in elements.It used to work earlier. I have upgraded protractor to Version 5.4.2

 Login to application should login with Credentials given
  Message:
    Failed: script timeout: result was not received in 11 seconds
      (Session info: chrome=72.0.3626.121)
      (Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 10.0.17134 x86_64)
  Stack:
    ScriptTimeoutError: script timeout: result was not received in 11 seconds
      (Session info: chrome=72.0.3626.121)
      (Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 10.0.17134 x86_64)
0reactions
Nossariancommented, Sep 25, 2019

@AyeshaBegam was this issue ever resolved? I believe I’m also running into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When using Protractor 5.4.2, webdriver-manager downloads ...
I introduced a bug when I tried to quickly fix the issue in 12.1.3 causing this to not work. Background on webdriver-manager downloading ......
Read more >
protractor | Yarn - Package Manager
Protractor runs tests against your application running in a real browser, ... BREAKING CHANGE: Debugger and explore methods are not compatable with Node...
Read more >
Timeouts - Protractor - end-to-end testing for AngularJS
Protractor waits for the angular variable to be present when loading a new page. Looks like: an error in your test results -...
Read more >
protractor/CHANGELOG.md - UNPKG
protractor /CHANGELOG.md ; 384, seems to fix up some unreliable download issues that we were previously having. ; 385 ; 386, - ([7aeebd6](https://github.com/angular ......
Read more >
5.4.2 - protractor - npm
Keywords · Install · Repository · Homepage · Version · License · Unpacked Size · Total Files · Issues.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found