Skip to content

Commit

Permalink
fix multiremote issue
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Dec 12, 2016
1 parent 9fcb5db commit 2377aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Runner {
/**
* update sessionId property
*/
if (payload.requestOptions.method === 'POST' && payload.requestOptions.uri.path.match(/\/session$/)) {
if (payload.requestOptions && payload.requestOptions.method === 'POST' && payload.requestOptions.uri.path.match(/\/session$/)) {
global.browser.sessionId = payload.body.sessionId
}
})
Expand Down

0 comments on commit 2377aea

Please sign in to comment.