Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Simplify login signature #2

Merged
merged 4 commits into from Jul 22, 2014
Merged

Simplify login signature #2

merged 4 commits into from Jul 22, 2014

Conversation

johnduffell
Copy link
Member

No description provided.

def getCookieDomain(url: String) =
"""http(s?)://([^.]*(\.))?([^/]+).*$""".r.replaceAllIn(url, "$3$4")

def apply(user: Option[String])(implicit driver: WebDriver) = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider providing alternative implementations of apply for the cases where you need a user string, and need no user. That would save having to wrap the calls in Some(user) for clients of this method.

johnduffell added a commit that referenced this pull request Jul 22, 2014
@johnduffell johnduffell merged commit 8bb74e7 into master Jul 22, 2014
@johnduffell johnduffell deleted the simplify-login-signature branch July 22, 2014 12:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants