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

229
Views
WebdriverIo- Focus doesn’t return to browser after closing a pop up window

Here is the scenario I am automating however execution stops after step 3

  1. Enter user name/Pwd on login page
  2. Click submit button > opens a pop up window >> enter data in input box on pop up window and HIT OK button
  3. Pop up is closed and a new page is displayed.
  4. Verify elements on newly displayed page.

Issue: unable to locate any item, tried getting browser handle, wait until, tried getting browser.geturl.

Basically as soon as pop up window is closed, No step is executed. Execution will stop and after some time I see error in console

JavaScript heap out of memory.

Other details Node version - 12 Webdriver 6.4.0 Browser - chrome 100.04896

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Did you tried to do something like this?

const window = browser.getWindowHandle();

browser.switchToWindow(window);

or

browser.switchToParentFrame()

or

browser.switchToFrame()
about 4 years ago · Juan Pablo Isaza Report
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!