Authentication failing when we navigate using browser.get #368
Description
We are using browser.get() to navigate to external app.
browser.get(
oParams.systemURL ,{
auth: {
'sapcloud-form': {
user: oParams.ProjBillingUser.UserName,
pass: oParams.ProjBillingUser.Password,
userFieldSelector: oParams.userFieldSelector,
passFieldSelector: oParams.passFieldSelector,
logonButtonSelector: oParams.logonButtonSelector
}
}
});
It seems like browser is waiting for login page. And authentication is happening twice.
Error:
TimeoutError: Waiting to redirect to login page
Wait timed out after 110000ms
at /home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:2201:17
at ManagedPromise.invokeCallback_ (/home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:1376:14)
at TaskQueue.execute_ (/home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:3084:14)
at TaskQueue.executeNext_ (/home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:3067:27)
at /home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:2927:27
at /home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:668:7
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
From: Task: Waiting to redirect to login page
at scheduleWait (/home/jenkins/workspace/us.cpm.projengagement.maint_main/infra/webapp/test/uiveri5/node_modules/selenium-webdriver/lib/promise.js:2188:20)
Activity