Setting up a synthetics test using scriptedbrowser to login to my site which uses Okta for authentication. However, the scripted browser seems unable to render the page causing a timeout when trying to find the username field:
$browser.get('https://mysitecom/login')
.then(function() {
return $browser.waitForAndFindElement($driver.By.id('okta-signin-username')).then(function(usernameElem){
return usernameElem.sendKeys('myusername');
})
})
The error is a timeout on finding the okta-signin-username element. The accompanying screenshot is blank. I have tried using the default user-agent and setting the current chrome version useragent, no change, always times out.
Has anyone else successfully browser scripted for Okta login here?