Command not working in Safari (Nightwatch)

I’m running a Nightwatch test that attempts to set the implicit timeout value. The test is working perfectly in Chrome, Firefox and Edge but fails in Safari with the error :

Error while running .setTimeoutType() protocol action: invalid argument – Unknown timeout type in ‘timeouts’: ‘type’

This is the command which I am using : browser.timeouts(‘implicit’, 10000) // set the implicit timeout value (used by assert/verify)

1 Like

Hi Miro,

You can use this command for adding an implicit wait :

browser.timeoutsImplicitWait(10000) // set the implicit timeout value (used by assert/verify)

This should work fine with all the browsers.

Also, please make sure you add the following capability in the test configuration : enableCustomTranslation : true

2 Likes