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

274
Views
Not able to open the child window on same running cypress script. Child window link is dynamic

my cypress code snippet:

    cy.visit("http://localhost:8080");   
    cy.get("#EmailId").type("admin@abc.com");
    cy.get("#PasswordId").type("admin@123");
    cy.get("#LoginButton > .v-btn__content").click();
    cy.get("#OpenFilterButton").click();  //this is for filter icon to open the child window.
       cy.wait(3000);
       cy.server();
       cy.route('**/investigation`enter code here`/*/popupwindow/*/searchinstancefilter');
       const investigationNum = '2925223647'  
       const searchInstanceNum = '2358303736'
       const filterscreenpath=     
      "/investigation/${investigationNum}/popupwindow/${searchInstanceNum}/searchinstancefilter";

Below is the HTML Code of that child window(Project is developed to run in Electron browser):

<template>
  <v-btn color="secondary" icon v-on:click="ListActionClick()">
    <v-icon class="List-Button-Icon">mdi-filter</v-icon>
  </v-btn>
</template>
<script>
export default {
  name: "sample",
  data() {
    return {
      authToken: "",
      refreshToken: "",
      path: "http://localhost:8080/#/childwindow"
    };
  },
  methods: {
    ListActionClick: function() {
      let WindowSize = { width: 0, height: 0 };
      WindowSize.width = 700;
      WindowSize.height = 600;
      let WindowURL = `LaunchWindow?token=${this.authToken}&refreshToken=${this.refreshToken}&rememberMe=false&path=${this.path}`;
      const ipcRenderer = require("electron").ipcRenderer;
      ipcRenderer.send("asynchronous-OpenWindow", {
        WindowURL,
        WindowSize
      });
    }
  }
};
</script>

I have tried this also but did not worked anything. Application is build to run on only Electron browser.

Below find the attachment of my issue: child window issue explanation

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!