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.

page assert HTTP/S Response causes page wait for Timeout to be ignored

See original GitHub issue

I have variables and snippets defined for accessing different parts of our application.

The Variables LOGIN_URL and LOGIN_EMAIL are visible The Variable LOGIN_PASSWORD is hidden. The Targets LOGIN_EMAIL and LOGIN_PASSWORD are HTML inputs The Target LOGIN_BUTTON is a HTML button

The snippet USER_LOGIN :

  • Sets the browser to 1920x180
  • Navigates to {{ LOGIN_URL }}
  • Waits for 3000ms
  • Types {{ LOGIN_EMAIL }} in to the LOGIN_EMAIL target
  • Types {{ LOGIN_PASSWORD }} into the LOGIN_PASSWORD target
  • Clicks the LOGIN_BUTTON target
  • Waits for 5000ms

The snippet NAVIGATE_JOBS

  • Navigates to our Jobs page
  • Waits for 5000ms

I have created a Test Suite, Jobs Page (jobs-page.json) with the Groups Jobs Page Loads and Jobs Page Search - Global

Jobs Page Loads

  • Logs the user in using the snippet USER_LOGIN
  • Loads the Jobs page using the snippet NAVIGATE_JOBS
  • Checks that an element is no longer observable on the page.

Jobs Page Search - Global has a test case Search Something that

  • Uses a HTML input field to enter text
  • Wait for 3000ms
  • Assert there was a POST request with a 200 response to part of our API

The Jobs Page suite was working fine until I added the Jobs Page Search - Global group, when I added it, I noticed that the timeouts where being ignored, If I disabled the Jobs Page Search - Global group, the timeouts work as expected.

If I enable it again they stop working.

If I remove the assertHTTP/SResponse case, the timeouts work as expected.

I don’t know if this case is unique to my setup or if this is an issue.

Any help would be appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dsheikocommented, Feb 7, 2020

Thank you. I’ll try to tackle in the next release

0reactions
MooseTheCodercommented, Mar 2, 2020

Seems to have resolved the issue, I’ll keep an eye on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message "Async callback was not invoked within the 5000 ...
The timeout problem occurs when either the network is slow or many network calls are made using await . These ...
Read more >
Waits
For example, setting an implicit wait of 10 seconds and an explicit wait of 15 seconds could cause a timeout to occur after...
Read more >
Async Methods
These can be useful to wait for an element to appear or disappear in response to an event, user action, timeout, or Promise....
Read more >
How to wait for page finish reloading after click? #1805
I got form and when I trigger click on submit button this cause to refresh current page. After that I would like to...
Read more >
Puppeteer documentation
TimeoutError <function> A class of TimeoutError. Puppeteer methods might throw errors if they are unable to fulfill a request. For example, page.waitForSelector ...
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