WebUI.OpenBrowser & WebUI.navigateToUrl - Any way to set a timeout?


I was wondering if there was a way to set a custom timeout on a single webui Keyword for openbrowser or navigatetoURL. The reason is that its a login page that Webui.authenticate doesnt work for currently, so I need the initial page load to only take 15-20 seconds (currently it takes 300 seconds), and then I can authenticate with a custom keyword (utilizing a Java robot solution found here )

Is there any way to do this? I dont see timeout parameters in openbrowser or navigatetoURL

Any help would be appreciated.

No currently you can’t do this. One workaround approach is using Javascript navigation which will lift off struck issue regard to using navigation keywords, like this:

WebUI.executeJavaScript(‘function myFunction() { setTimeout(function(){ window.location.href = \‘https://the-internet.herokuapp.com/basic_auth\’; }, 500);}; myFunction()’, [])

Above Javascript function will navigate to destination page after 500ms, so you don’t need to wait for about 300 seconds