Skip to content

Commit

Permalink
Merge d01fdb2 into 062c426
Browse files Browse the repository at this point in the history
  • Loading branch information
DorokhinVA committed Jun 2, 2018
2 parents 062c426 + d01fdb2 commit 599eed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ru/alfabank/steps/DefaultSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ public void checkListInnerTextCorrespondsToListFromVariable(String listName, Str
/**
* Сохранение значения элемента в переменную
*/
@Когда("^значение (?:элемента|поля) \"([^\"]*)\" сохранено в переменную \"([^\"]*)\"")
@Когда("^значение (?:элемента|поля) \"([^\"]*)\" сохранено в переменную \"([^\"]*)\"$")
public void storeElementValueInVariable(String elementName, String variableName) {
akitaScenario.setVar(variableName, akitaScenario.getCurrentPage().getAnyElementText(elementName));
akitaScenario.write("Значение сохраненное в переменную: " + akitaScenario.getCurrentPage().getAnyElementText(elementName));
akitaScenario.write("Значение [" + akitaScenario.getCurrentPage().getAnyElementText(elementName) + "] сохранено в переменную [" + variableName + "]");
}

/**
Expand Down

0 comments on commit 599eed1

Please sign in to comment.