OKTA signin container is returned empty

we are trying to run some loginFlow tests in Java+SpringBoot which uses OKTA login and we
retrieve login html page and trying to set password and username to the okta login elements. The initial URL we are attempting to hit: http://localhost:8019/oauth/authorize, and this will redirect to okta login page. When we view this login page in Chrome, it displays the username and password fields fine and shows the elements in the inspect tab as well.

When we try to retrieve the page through Java WebClient, the html page contains empty signin-container div. the Okta header and footer appear, but the login fields don’t appear. we are using com.gargoylesoftware.htmlunit.html.HtmlPage in java( with SpringBoot).

Does anyone have any pointers?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.