diff --git a/src/test/java/com/uniovi/steps/GameStep.java b/src/test/java/com/uniovi/steps/GameStep.java index bc430547..820a1217 100644 --- a/src/test/java/com/uniovi/steps/GameStep.java +++ b/src/test/java/com/uniovi/steps/GameStep.java @@ -40,7 +40,7 @@ public void iShouldStartPlaying() { List finalMessage; while(playing){ //I obtain the buttons for the answers - List elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 10); + List elems = By.cssSelector(".container .row button").findElements(driver); log.info("Found " + elems.size() + " buttons"); log.info("Iteration " + i + " of the game"); //I click on the first button diff --git a/src/test/resources/features/Game.feature b/src/test/resources/features/Game.feature index e970154c..b3120c41 100644 --- a/src/test/resources/features/Game.feature +++ b/src/test/resources/features/Game.feature @@ -6,4 +6,4 @@ Feature: I try to play a normal game And I press the register button And I go to the home page When I press Play - #Then I should start playing \ No newline at end of file + Then I should start playing \ No newline at end of file