Skip to content

Commit

Permalink
commented depricated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperJhons committed Oct 16, 2017
1 parent 76f5826 commit dac7fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ru/colibri/ui/steps/general/ListItemCheck.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ru.colibri.ui.steps.general;

import org.eclipse.jetty.util.annotation.Name;
import org.jbehave.core.annotations.Named;
import org.jbehave.core.annotations.Then;
import org.openqa.selenium.WebElement;
import org.springframework.stereotype.Component;
Expand All @@ -18,7 +18,7 @@ public class ListItemCheck extends AbsSteps {

@Step
@Then("количество найденных элементов \"$fieldName\" равно \"$quantityExpectedValue\"")
public void listItemCheck(@Name("$fieldName") String fieldName, @Name("$quantityExpectedValue") int quantityExpectedValue) {
public void listItemCheck(@Named("$fieldName") String fieldName, @Named("$quantityExpectedValue") int quantityExpectedValue) {
IElement element = getCurrentPage().getElementByName(fieldName);
List<WebElement> elementsFound = finder.findWebElements(element);
int quantityActualElements = elementsFound.size();
Expand Down

0 comments on commit dac7fb4

Please sign in to comment.