0

Is there a way to alter any global variable or localStorage item before loading the url specified in Gemini's setUrl?

I tried using executeJS but whatever I set is not available for the app initialization:

suite
  .setUrl( 'index.html' )
  .before( function( actions, find ) {
    actions.executeJS( function( window ) {
      localStorage.setItem( 'key', 'value' );
      navigator.language = 'sk';
      globalConfig.flag = true;
    });
  });
wabisabit
  • 412
  • 5
  • 16

1 Answers1

0

Actually there is an issue in gemini-testing addressing this usage.

Basically setUrl() needs to be called again after the values are set.

wabisabit
  • 412
  • 5
  • 16