Documentation ¶
Overview ¶
Package login implements logging in to a Chrome user session.
Index ¶
- Variables
- func LogIn(ctx context.Context, cfg *config.Config, sess *driver.Session) error
- func MatchSignInGAIAWebView(ctx context.Context, sess *driver.Session) cdputil.TargetMatcher
- func WaitForOOBEConnection(ctx context.Context, sess *driver.Session) (*driver.Conn, error)
- func WaitForOOBEConnectionToBeDismissed(ctx context.Context, sess *driver.Session) error
- func WaitForOOBEConnectionWithPrefix(ctx context.Context, sess *driver.Session, prefix string) (*driver.Conn, error)
- func WaitForRMAConnection(ctx context.Context, sess *driver.Session) (*driver.Conn, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNeedNewSession = errors.New("Chrome restarted; need a new session")
ErrNeedNewSession is returned by LogIn if a caller should create a new session due to Chrome restart.
Functions ¶
func LogIn ¶
LogIn performs a user or guest login based on the loginMode. This function may restart Chrome and make an existing session unavailable, in which case errNeedNewSession is returned. Also performs enterprise enrollment before login when requested.
func MatchSignInGAIAWebView ¶
MatchSignInGAIAWebView returns a function that matches GAIA sign in webview targets. The strategy for identifying a GAIA sign in target is copied from the Catapult telemetry project's oobe.py script.
func WaitForOOBEConnection ¶
WaitForOOBEConnection establishes a connection to an OOBE page.
func WaitForOOBEConnectionToBeDismissed ¶
WaitForOOBEConnectionToBeDismissed waits for the OOBE page to be dismissed.
Types ¶
This section is empty.