 
     @isSessionActive browser, (isActive) =>
 
-      if isActive then browser.end()
-      else
-        @startSession browser, readOnlySession
-
-        browser
-          .waitForElementVisible  startedButtonSelector, 50000
-          .assert.containsText    startedButtonSelector, 'END COLLABORATION' # Assertion
-          .getText                collabLink, (result) ->
-            console.log ' ✔ Collaboration link is ', result.value
-            browser.writeCollabLink result.value, ->
-              browser.waitForElementVisible secondUserAvatar, 60000
-
-              if assertOnline
-                browser.waitForElementVisible secondUserOnlineAvatar, 50000 # Assertion
-
-
-  joinSession: (browser, firstUser, secondUser, join = yes) ->
+      if isActive
+        @endSessionFromStatusBar(browser)
+        browser.pause 5000
+
+      @startSession browser, readOnlySession
+
+      browser
+        .waitForElementVisible  startedButtonSelector, 50000
+        .assert.containsText    startedButtonSelector, 'END COLLABORATION' # Assertion
+        .getText                collabLink, (result) ->
+          console.log ' ✔ Collaboration link is ', result.value
+          browser.writeCollabLink result.value, ->
+            browser.waitForElementVisible secondUserAvatar, 60000
+
+            if assertOnline
+              browser.waitForElementVisible secondUserOnlineAvatar, 50000 # Assertion
+
+
+  joinSession: (browser, firstUser, secondUser) ->
 
     firstUserName    = firstUser.username
     secondUserName   = secondUser.username

      # assert that no shared vm on sidebar


  initiateCollaborationSession: (browser, join = yes) ->

    host        = utils.getUser no, 0
    participant = utils.getUser no, 1

    if hostBrowser
      @startSessionAndInviteUser browser, host, participant
    else
      @joinSession browser, host, participant


  rejectInvitation: (browser) ->
