mercredi 4 mars 2020

How to continue test after .setValue(/file.apk)

my nightwatch test failed because it can't find element(button), the reason as I think is because after selecting and uploading file, the local file menu is overloping web page where is the button, my question is how to close this menu and continue test?

          'input[type="file"]',
          require("path").resolve(__dirname + "/test_files/file.apk")
        );

        browser.pause(20000);
        .assertcontainsText('//*text, 'text') - Failing here. Element could not be located.
        browser.end();
    },
  };

Many thanks!

Aucun commentaire:

Enregistrer un commentaire