Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

281
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda