 
   attemptLogin: (browser, user) ->
 
-    browser
-      .waitForElementVisible  '[testpath=main-header]', 50000
-      .click                  'nav:not(.mobile-menu) [testpath=login-link]'
+    unless HUBSPOT
+      browser
+        .waitForElementVisible  '[testpath=main-header]', 50000
+        .click                  'nav:not(.mobile-menu) [testpath=login-link]'
+
+    browser
       .waitForElementVisible  '[testpath=login-container]', 50000
       .setValue               '[testpath=login-form-username]', user.username
       .setValue               '[testpath=login-form-password]', user.password

    @attemptEnterEmailAndPasswordOnRegister(browser, user)
    @attemptEnterUsernameOnRegister(browser, user)

    browser.waitForElementVisible '[testpath=AvatarAreaIconLink]', 50000 # Assertion


  postActivity: (browser, shouldBeginTest = yes) ->

  assertNotLoggedIn: (browser, user) ->

    url = @getUrl()

    if HUBSPOT
       url = "#{url}/Login"

    browser.url(url)
    browser.maximizeWindow()

