Skip to content

Commit 6856a51

Browse files
committed
replace setLine to replaceRange
1 parent 5ea68f0 commit 6856a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/regression/page_objects/initializerPO.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function InitializerPO () {
1414

1515
this.setRaml = function(raml) {
1616
for (var i = 0; i < raml.length; i++) {
17-
browser.executeScript('jQuery(".CodeMirror")[0].CodeMirror.setLine(' + i + ', "' + raml[i] + ' \\n")');
17+
browser.executeScript('jQuery(".CodeMirror")[0].CodeMirror.replaceRange("' + raml[i] + ' \\n", {line: ' + i + ', ch: 0}, {line: ' + i + '})');
1818
}
1919
};
2020

0 commit comments

Comments
 (0)