Skip to content

Commit

Permalink
webdriver: Merge pull request #52 from mozilla/status_no_session
Browse files Browse the repository at this point in the history
Allow calling status command without a session being started

Source-Repo: https://github.com/mozilla/webdriver-rust
Source-Revision: 4e67bbcf26413c732a43952566c9ec036fa3377e

--HG--
extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000
extra : subtree_revision : fd2a688dd22b945442617110553fdadf95cc524e
  • Loading branch information
jgraham committed Nov 22, 2016
1 parent 8432984 commit 7d686fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/webdriver/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl <T: WebDriverHandler<U>,
None => {
match msg.command {
WebDriverCommand::NewSession(_) => Ok(()),

WebDriverCommand::Status => Ok(()),
_ => Err(WebDriverError::new(
ErrorStatus::InvalidSessionId,
"Tried to run a command before creating a session"))
Expand Down

0 comments on commit 7d686fb

Please sign in to comment.