Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

New tab stops the process #920

Open
wabisabit opened this issue Jun 20, 2018 · 2 comments
Open

New tab stops the process #920

wabisabit opened this issue Jun 20, 2018 · 2 comments

Comments

@wabisabit
Copy link

Gemini version 5.7.2

When running tests, the process gets stuck if a new tab opens (with a bank payment website for example). Is there a way around it or is it a bug?

I could only think of using window.focus() inside an executeJS() action but it doesn't help.

@DudaGod
Copy link
Member

DudaGod commented Jun 20, 2018

Hello.
Can you provide log from your console and your test which you run?

@wabisabit
Copy link
Author

wabisabit commented Jun 20, 2018

Hi!
the console doesn't output anything after the last successful test, it just hangs.

// More successful tests before
.capture( 'Working', function( actions, find ) {

      helper.clickAndWaitForPopup( actions, find( '.wPremium' ) );
    } )
    .capture( 'Stuck: no capture', function( actions, find ) { 
    
       actions
           .click( find( '.pay' ) ) // Opens the new tab
           .wait( 1000 );
    //     .executeJS( function( window ) {     //     Doesn't help
    //       window.focus();
    //     } );
    } )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants