gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

New tab stops the process #920

Open wabisabit opened 6 years ago

wabisabit commented 6 years ago

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 commented 6 years ago

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

wabisabit commented 6 years ago

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();
    //     } );
    } )