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

177
Views
How to change part of the url every 5 seconds

I need to change part of URL every 5 seconds and refresh the browser tab with a new URL

URL: looks like

https://tes.test/tes/test#12.4/40.0000/-0.0/24.934764/55.158747/22981.332850

And I want to change for example /40.000/ every 5 seconds by adding 5k (40.000+5.000=new URL with 45.000 every 5 seconds.

I have doubt that this can be done with windows.location but I have no idea how to implement this.

For now, I have

cy.get('canvas').click()
for (let i = 0; i < 10; i++){
    let url = window.location.href
    const refreshData = url.split("/")[5]
    url = url.replace(refreshData, `${+refreshData + 5}`)
    console.log(url)
    cy.visit(url)
    cy.wait(1000)

but this is not updating URL in Cypress browser tab

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!