Skip to content

Commit 5997b7a

Browse files
committed
v3.1.0
1 parent beec813 commit 5997b7a

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

packages/selenium-ide/Changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## 3.1.0
22
### Extensions
33
Selenium IDE supports extensions now, more info [here](https://github.com/SeleniumHQ/selenium-ide/wiki/Getting-Started-with-Plugins)
4-
### SIDE Runner
5-
Can now run project files [headlessly in command line](https://www.npmjs.com/package/selenium-side-runner)
4+
### Reference
5+
A new reference tab added, gives helpful information about commands, check it out (next to the logs).

packages/selenium-ide/src/content/commands-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function doCommands(request, sender, sendResponse) {
4747
if (selenium["do" + upperCase] != null) {
4848
try {
4949
document.body.setAttribute("SideeXPlayingFlag", true);
50-
let returnValue = selenium["do"+upperCase](selenium.preprocessParamete(request.target),selenium.preprocessParameter(request.value));
50+
let returnValue = selenium["do"+upperCase](selenium.preprocessParameter(request.target),selenium.preprocessParameter(request.value));
5151
if (returnValue instanceof Promise) {
5252
// The command is a asynchronous function
5353
returnValue.then(function() {

packages/selenium-ide/src/neo/IO/filesystem.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,25 @@ export function saveProject(_project) {
7070
}
7171

7272
function downloadProject(project) {
73-
return exportProject(project).then(code => {
74-
project.code = code;
75-
Object.assign(project, Manager.emitDependencies());
73+
if (process.env.NODE_ENV === "production") {
7674
return browser.downloads.download({
7775
filename: project.name + ".side",
7876
url: createBlob("application/json", beautify(JSON.stringify(project), { indent_size: 2 })),
7977
saveAs: true,
8078
conflictAction: "overwrite"
8179
});
82-
});
80+
} else {
81+
return exportProject(project).then(code => {
82+
project.code = code;
83+
Object.assign(project, Manager.emitDependencies());
84+
return browser.downloads.download({
85+
filename: project.name + ".side",
86+
url: createBlob("application/json", beautify(JSON.stringify(project), { indent_size: 2 })),
87+
saveAs: true,
88+
conflictAction: "overwrite"
89+
});
90+
});
91+
}
8392
}
8493

8594
function exportProject(project) {

0 commit comments

Comments
 (0)