Skip to content

Commit

Permalink
v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
corevo committed Jun 21, 2018
1 parent beec813 commit 5997b7a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/selenium-ide/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 3.1.0
### Extensions
Selenium IDE supports extensions now, more info [here](https://github.com/SeleniumHQ/selenium-ide/wiki/Getting-Started-with-Plugins)
### SIDE Runner
Can now run project files [headlessly in command line](https://www.npmjs.com/package/selenium-side-runner)
### Reference
A new reference tab added, gives helpful information about commands, check it out (next to the logs).
2 changes: 1 addition & 1 deletion packages/selenium-ide/src/content/commands-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function doCommands(request, sender, sendResponse) {
if (selenium["do" + upperCase] != null) {
try {
document.body.setAttribute("SideeXPlayingFlag", true);
let returnValue = selenium["do"+upperCase](selenium.preprocessParamete(request.target),selenium.preprocessParameter(request.value));
let returnValue = selenium["do"+upperCase](selenium.preprocessParameter(request.target),selenium.preprocessParameter(request.value));
if (returnValue instanceof Promise) {
// The command is a asynchronous function
returnValue.then(function() {
Expand Down
17 changes: 13 additions & 4 deletions packages/selenium-ide/src/neo/IO/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,25 @@ export function saveProject(_project) {
}

function downloadProject(project) {
return exportProject(project).then(code => {
project.code = code;
Object.assign(project, Manager.emitDependencies());
if (process.env.NODE_ENV === "production") {
return browser.downloads.download({
filename: project.name + ".side",
url: createBlob("application/json", beautify(JSON.stringify(project), { indent_size: 2 })),
saveAs: true,
conflictAction: "overwrite"
});
});
} else {
return exportProject(project).then(code => {
project.code = code;
Object.assign(project, Manager.emitDependencies());
return browser.downloads.download({
filename: project.name + ".side",
url: createBlob("application/json", beautify(JSON.stringify(project), { indent_size: 2 })),
saveAs: true,
conflictAction: "overwrite"
});
});
}
}

function exportProject(project) {
Expand Down

0 comments on commit 5997b7a

Please sign in to comment.