feature 16229
This commit is contained in:
parent
66831e8bbb
commit
d9c5947f53
|
|
@ -81,6 +81,7 @@ public final class CodeEditor {
|
|||
.click()
|
||||
.sendKeys(inputContent)
|
||||
.sendKeys(Constants.LINE_SEPARATOR)
|
||||
.pause(Constants.DEFAULT_SLEEP_SECONDS)
|
||||
.perform();
|
||||
continue;
|
||||
} else {
|
||||
|
|
@ -93,6 +94,7 @@ public final class CodeEditor {
|
|||
.click()
|
||||
.sendKeys(inputContent)
|
||||
.sendKeys(Constants.LINE_SEPARATOR)
|
||||
.pause(Constants.DEFAULT_SLEEP_SECONDS)
|
||||
.perform();
|
||||
} else {
|
||||
for (int p = 0 ; p < editorLineText.strip().length(); p++) {
|
||||
|
|
@ -105,12 +107,14 @@ public final class CodeEditor {
|
|||
.click()
|
||||
.sendKeys(inputContent)
|
||||
.sendKeys(Constants.LINE_SEPARATOR)
|
||||
.pause(Constants.DEFAULT_SLEEP_SECONDS)
|
||||
.perform();
|
||||
}
|
||||
} else {
|
||||
actions.moveToElement(editor.get(i))
|
||||
.click()
|
||||
.sendKeys(Constants.LINE_SEPARATOR)
|
||||
.pause(Constants.DEFAULT_SLEEP_SECONDS)
|
||||
.perform();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,6 @@ public final class Constants {
|
|||
public static final String SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH = "/home/seluser/Downloads";
|
||||
|
||||
public static final String LINE_SEPARATOR = "\n";
|
||||
|
||||
public static final long DEFAULT_SLEEP_SECONDS = 500;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue