Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
How to detect if Google Maps iframe finished loading

If one has an Google Maps iFrame like https://www.google.com/maps/embed?... on a page a simple document.ready won't work as the iframe will only load its content if it is in the visible window portion. Thus scrolling the page to the bottom will init the loading asynchronously.

However how can one test if a Google Maps iFrame has finished all its loading and loading animation (jQuery or plain JavaScript)?

Background:

Using CodeceptJS we do visual regression testing doing full page screenshots. However the screenshots differ as the iframe is not fully loaded (thus would be loaded differently fast for the two screenshots by random).

A simple scrollToPageBottom inits it and a wait(10) will work. However it should just wait as long as necessary to reduce CI pipeline duration with hundreds of tests. As the Playwright helper doesn't offer this natively it seems running a JavaScript command seems more suitable. As all underlying sites use jQuery this can be used to ease complexity.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!