Skip to content

Commit 3b28689

Browse files
committed
Fix for switchToFrameByIndex
1 parent ed55125 commit 3b28689

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nr_synthetics_formatter.zip

1 Byte
Binary file not shown.

nr_synthetics_formatter/nr-synthetics.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ lineForType: {
9595
"switchToFrame":
9696
function(step) { return scriptify("$browser.switchTo().frame('" + step.identifier + "')"); },
9797
"switchToFrameByIndex":
98-
function(step) { return scriptify("$browser.switchTo().frame('" + step.index + "')"); },
98+
function(step) { return scriptify("$browser.switchTo().frame(" + step.index + ")"); },
9999
"switchToWindow":
100100
function(step) { return scriptify("$browser.switchTo().window('" + step.name + "')"); },
101101
"switchToDefaultContent":
@@ -411,8 +411,7 @@ lineForType: {
411411
"{getterFinish}", getter); },
412412
boolean_getters: {
413413
"TextPresent": {
414-
getter: "$browser.findElement(By.tagName('body')).getText()\n" +
415-
" .then(function (text) { return text.indexOf({text}) != -1; })",
414+
getter: "$browser.findElement(By.tagName('body')).getText().then(function (text) { return text.indexOf({text}) != -1; })",
416415
getterFinish: "})\n\n",
417416
value: "{text}"
418417
},

0 commit comments

Comments
 (0)