INNER CODE UNIT · Go

logInToDex

int128/kubelogin · system_test/login/chromelogin/main.go:71

func logInToDex(ctx context.Context) error {
	return chromedp.Run(ctx,
		// https://dex-server:10443/dex/auth/local
		chromedp.WaitVisible(`#login`),
		logPageMetadata(),
		chromedp.SendKeys(`#login`, `admin@example.com`),
		chromedp.SendKeys(`#password`, `password`),
		chromedp.Submit(`#submit-login`),
		// https://dex-server:10443/dex/approval
		chromedp.WaitVisible(`.dex-btn.theme-btn--success`),
		logPageMetadata(),
		chromedp.Submit(`.dex-btn.theme-btn--success`),
		// http://localhost:8000
		chromedp.WaitReady(`body`),
		logPageMetadata(),
	)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…