@seleniumhq/code-export-csharp-commons 3.16.0 → 3.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__test__/src/__snapshots__/command.spec.js.snap +8 -1
- package/__test__/src/command.spec.js +9 -1
- package/package.json +2 -2
- package/src/command.js +24 -2
- package/src/location.js +1 -1
- package/src/selection.js +1 -1
- package/dist/command.js +0 -1114
- package/dist/index.js +0 -34
- package/dist/location.js +0 -68
- package/dist/selection.js +0 -57
- package/yarn-error.log +0 -2151
package/dist/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _command = _interopRequireDefault(require("./command"));
|
|
4
|
-
|
|
5
|
-
var _location = _interopRequireDefault(require("./location"));
|
|
6
|
-
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
|
|
9
|
-
// Licensed to the Software Freedom Conservancy (SFC) under one
|
|
10
|
-
// or more contributor license agreements. See the NOTICE file
|
|
11
|
-
// distributed with this work for additional information
|
|
12
|
-
// regarding copyright ownership. The SFC licenses this file
|
|
13
|
-
// to you under the Apache License, Version 2.0 (the
|
|
14
|
-
// "License"); you may not use this file except in compliance
|
|
15
|
-
// with the License. You may obtain a copy of the License at
|
|
16
|
-
//
|
|
17
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
//
|
|
19
|
-
// Unless required by applicable law or agreed to in writing,
|
|
20
|
-
// software distributed under the License is distributed on an
|
|
21
|
-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
22
|
-
// KIND, either express or implied. See the License for the
|
|
23
|
-
// specific language governing permissions and limitations
|
|
24
|
-
// under the License.
|
|
25
|
-
const opts = {};
|
|
26
|
-
opts.fileExtension = '.cs';
|
|
27
|
-
opts.commandPrefixPadding = ' ';
|
|
28
|
-
opts.terminatingKeyword = '}';
|
|
29
|
-
opts.commentPrefix = '//';
|
|
30
|
-
module.exports = {
|
|
31
|
-
Command: _command.default,
|
|
32
|
-
location: _location.default,
|
|
33
|
-
opts
|
|
34
|
-
};
|
package/dist/location.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.emit = emit;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var _sideUtils = require("@seleniumhq/side-utils");
|
|
10
|
-
|
|
11
|
-
// Licensed to the Software Freedom Conservancy (SFC) under one
|
|
12
|
-
// or more contributor license agreements. See the NOTICE file
|
|
13
|
-
// distributed with this work for additional information
|
|
14
|
-
// regarding copyright ownership. The SFC licenses this file
|
|
15
|
-
// to you under the Apache License, Version 2.0 (the
|
|
16
|
-
// "License"); you may not use this file except in compliance
|
|
17
|
-
// with the License. You may obtain a copy of the License at
|
|
18
|
-
//
|
|
19
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
-
//
|
|
21
|
-
// Unless required by applicable law or agreed to in writing,
|
|
22
|
-
// software distributed under the License is distributed on an
|
|
23
|
-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
24
|
-
// KIND, either express or implied. See the License for the
|
|
25
|
-
// specific language governing permissions and limitations
|
|
26
|
-
// under the License.
|
|
27
|
-
const emitters = {
|
|
28
|
-
id: emitId,
|
|
29
|
-
name: emitName,
|
|
30
|
-
link: emitLink,
|
|
31
|
-
linkText: emitLink,
|
|
32
|
-
partialLinkText: emitPartialLinkText,
|
|
33
|
-
css: emitCss,
|
|
34
|
-
xpath: emitXpath
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function emit(location) {
|
|
38
|
-
return _sideUtils.codeExport.emit.location(location, emitters);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
var _default = {
|
|
42
|
-
emit
|
|
43
|
-
};
|
|
44
|
-
exports.default = _default;
|
|
45
|
-
|
|
46
|
-
function emitId(selector) {
|
|
47
|
-
return Promise.resolve(`By.Id("${selector}")`);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function emitName(selector) {
|
|
51
|
-
return Promise.resolve(`By.Name("${selector}")`);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function emitLink(selector) {
|
|
55
|
-
return Promise.resolve(`By.LinkText("${selector}")`);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function emitPartialLinkText(selector) {
|
|
59
|
-
return Promise.resolve(`By.PartialLinkText("${selector}")`);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function emitCss(selector) {
|
|
63
|
-
return Promise.resolve(`By.CssSelector("${selector}")`);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function emitXpath(selector) {
|
|
67
|
-
return Promise.resolve(`By.XPath("${selector}")`);
|
|
68
|
-
}
|
package/dist/selection.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.emit = emit;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var _sideUtils = require("@seleniumhq/side-utils");
|
|
10
|
-
|
|
11
|
-
// Licensed to the Software Freedom Conservancy (SFC) under one
|
|
12
|
-
// or more contributor license agreements. See the NOTICE file
|
|
13
|
-
// distributed with this work for additional information
|
|
14
|
-
// regarding copyright ownership. The SFC licenses this file
|
|
15
|
-
// to you under the Apache License, Version 2.0 (the
|
|
16
|
-
// "License"); you may not use this file except in compliance
|
|
17
|
-
// with the License. You may obtain a copy of the License at
|
|
18
|
-
//
|
|
19
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
-
//
|
|
21
|
-
// Unless required by applicable law or agreed to in writing,
|
|
22
|
-
// software distributed under the License is distributed on an
|
|
23
|
-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
24
|
-
// KIND, either express or implied. See the License for the
|
|
25
|
-
// specific language governing permissions and limitations
|
|
26
|
-
// under the License.
|
|
27
|
-
const emitters = {
|
|
28
|
-
id: emitId,
|
|
29
|
-
value: emitValue,
|
|
30
|
-
label: emitLabel,
|
|
31
|
-
index: emitIndex
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
function emit(location) {
|
|
35
|
-
return _sideUtils.codeExport.emit.selection(location, emitters);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var _default = {
|
|
39
|
-
emit
|
|
40
|
-
};
|
|
41
|
-
exports.default = _default;
|
|
42
|
-
|
|
43
|
-
function emitId(id) {
|
|
44
|
-
return Promise.resolve(`By.CssSelector("*[id='${id}']")`);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function emitValue(value) {
|
|
48
|
-
return Promise.resolve(`By.CssSelector("*[value='${value}']")`);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function emitLabel(label) {
|
|
52
|
-
return Promise.resolve(`By.XPath("//option[. = '${label}']")`);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function emitIndex(index) {
|
|
56
|
-
return Promise.resolve(`By.CssSelector("*:nth-child(${index})")`);
|
|
57
|
-
}
|